Core Function
View Source on Trac ↗ rest_validate_integer_value_from_schema()
rest_validate_integer_value_from_schema( mixed $value, mixed $args, mixed $param ) Validates an integer value based on a schema.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $value mixed | The value to validate. Required |
| $args array | Schema array to use for validation. Required |
| $param string | The parameter name, used in error messages. Required |
Return Value
((true)
| WP_Error)
Function Information
Since Version
5.7.0
Source File
wp-includes/rest-api.php
Advertisement