wppaste
WordPress

rest_validate_value_from_schema( mixed $value, array $args, string $param = '' ): true|WP_Error

Since
4.7.0, 4.9.0, 5.2.0, 5.3.0, 5.4.0, 5.5.0, 5.6.0
Source
wp-includes/rest-api.php:2221
Validate a value based on a schema.

Compatibility

WordPress
since 5.6.0
PHP
7.4–8.6-dev
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0), and compiles on PHP 7.4 through 8.6-dev.

Parameters

$valuemixed
The value to validate.
$argsarray
Schema array to use for validation.
$paramstringoptional
The parameter name, used in error messages.Default: ''

Return value

true|WP_Error

Performance profile

How much work a call to rest_validate_value_from_schema() does, and what it touches: the algorithmic scaling, the Zend instruction count per call across PHP versions, the hooks it hands control to, and the core code that calls it. Measured from the compiled opcodes, not a stopwatch, so every number is identical on any machine running the same PHP version, and every function in core is ranked by cost.

Cost class
Trivial

Touches nothing outside its own arguments.

Scaling
Constant

No loop in the body: the same number of instructions runs whatever you pass in.

Instructions
25–105

Executed per call on PHP 8.5, depending on the branch taken. The body compiles to 287.

Plugin surface
None

Nothing here hands control to plugin code.

Called by
19

19 places in core call this, so the cost is paid more often than your own code shows.

What it touches

  • hookthird-party callbacksdo_action()one call below rest_validate_value_from_schema()

Further down the call graph this can also reach option, cache, serialize, query and transient. Those are the worst case, several calls deep and usually down an error path, not what a normal call pays.

What one call costs · 352 distinct outcomes

One number would be a lie: the work depends on which branch runs. These are every distinct cost rest_validate_value_from_schema() can have, taken from its control-flow graph on PHP 8.5.

WhenInstructionsCalls it makes
always25–67is_wp_error()
always30–59rest_validate_null_value_from_schema(), is_wp_error()
always30–61rest_validate_boolean_value_from_schema(), is_wp_error()
always31–64rest_validate_object_value_from_schema(), is_wp_error()
always31–66rest_validate_array_value_from_schema(), is_wp_error()
always31–68rest_validate_number_value_from_schema(), is_wp_error()
always31–70rest_validate_string_value_from_schema(), is_wp_error()
always31–72rest_validate_integer_value_from_schema(), is_wp_error()
!is_wp_error() && !empty($args)37–77is_wp_error(), rest_validate_enum(), is_wp_error()
!is_wp_error() && empty($args) && rest_parse_hex_color()38–62is_wp_error(), rest_parse_hex_color()
!is_wp_error() && empty($args) && is_email()38–66is_wp_error(), is_email()
!is_wp_error() && empty($args) && rest_is_ip_address()38–68is_wp_error(), rest_is_ip_address()
340 further outcomes, up to 95 instructions
!is_wp_error() && empty($args) && wp_is_uuid()38–70is_wp_error(), wp_is_uuid()
$args38–65__(), wp_sprintf(), _doing_it_wrong(), is_wp_error()
!is_wp_error() && empty($args)39–65is_wp_error(), rest_parse_date()
!is_wp_error() && !empty($args)42–69rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error()
!is_wp_error() && !empty($args)42–71rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error()
!is_wp_error() && empty($args) && rest_parse_hex_color()43–54rest_validate_null_value_from_schema(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && empty($args) && is_email()43–58rest_validate_null_value_from_schema(), is_wp_error(), is_email()
!is_wp_error() && empty($args) && rest_is_ip_address()43–60rest_validate_null_value_from_schema(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && empty($args) && wp_is_uuid()43–62rest_validate_null_value_from_schema(), is_wp_error(), wp_is_uuid()
!is_wp_error() && empty($args) && rest_parse_hex_color()43–56rest_validate_boolean_value_from_schema(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && empty($args) && is_email()43–60rest_validate_boolean_value_from_schema(), is_wp_error(), is_email()
!is_wp_error() && empty($args) && rest_is_ip_address()43–62rest_validate_boolean_value_from_schema(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && empty($args) && wp_is_uuid()43–64rest_validate_boolean_value_from_schema(), is_wp_error(), wp_is_uuid()
!is_wp_error() && !empty($args)43–74rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error()
!is_wp_error() && !empty($args)43–76rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error()
!is_wp_error() && !empty($args)43–78rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error()
!is_wp_error() && !empty($args)43–80rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error()
!is_wp_error() && !empty($args)43–82rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error()
always43–72__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error()
always43–74__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error()
!is_wp_error() && empty($args)44–57rest_validate_null_value_from_schema(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args)44–59rest_validate_boolean_value_from_schema(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args) && rest_parse_hex_color()44–59rest_validate_object_value_from_schema(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && empty($args) && is_email()44–63rest_validate_object_value_from_schema(), is_wp_error(), is_email()
!is_wp_error() && empty($args) && rest_is_ip_address()44–65rest_validate_object_value_from_schema(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && empty($args) && wp_is_uuid()44–67rest_validate_object_value_from_schema(), is_wp_error(), wp_is_uuid()
!is_wp_error() && empty($args) && rest_parse_hex_color()44–61rest_validate_array_value_from_schema(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && empty($args) && is_email()44–65rest_validate_array_value_from_schema(), is_wp_error(), is_email()
!is_wp_error() && empty($args) && rest_is_ip_address()44–67rest_validate_array_value_from_schema(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && empty($args) && wp_is_uuid()44–69rest_validate_array_value_from_schema(), is_wp_error(), wp_is_uuid()
!is_wp_error() && empty($args) && rest_parse_hex_color()44–63rest_validate_number_value_from_schema(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && empty($args) && is_email()44–67rest_validate_number_value_from_schema(), is_wp_error(), is_email()
!is_wp_error() && empty($args) && rest_is_ip_address()44–69rest_validate_number_value_from_schema(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && empty($args) && wp_is_uuid()44–71rest_validate_number_value_from_schema(), is_wp_error(), wp_is_uuid()
!is_wp_error() && empty($args) && rest_parse_hex_color()44–65rest_validate_string_value_from_schema(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && empty($args) && is_email()44–69rest_validate_string_value_from_schema(), is_wp_error(), is_email()
!is_wp_error() && empty($args) && rest_is_ip_address()44–71rest_validate_string_value_from_schema(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && empty($args) && wp_is_uuid()44–73rest_validate_string_value_from_schema(), is_wp_error(), wp_is_uuid()
!is_wp_error() && empty($args) && rest_parse_hex_color()44–67rest_validate_integer_value_from_schema(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && empty($args) && is_email()44–71rest_validate_integer_value_from_schema(), is_wp_error(), is_email()
!is_wp_error() && empty($args) && rest_is_ip_address()44–73rest_validate_integer_value_from_schema(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && empty($args) && wp_is_uuid()44–75rest_validate_integer_value_from_schema(), is_wp_error(), wp_is_uuid()
always44–77__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error()
always44–79__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error()
always44–81__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error()
$args44–71__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error()
$args44–71__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error()
!is_wp_error() && empty($args)45–62rest_validate_object_value_from_schema(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args)45–64rest_validate_array_value_from_schema(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args)45–66rest_validate_number_value_from_schema(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args)45–68rest_validate_string_value_from_schema(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args)45–70rest_validate_integer_value_from_schema(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args) && !rest_parse_hex_color()45–69is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && empty($args) && !is_email()45–73is_wp_error(), is_email(), __()
!is_wp_error() && empty($args)46–72is_wp_error(), rest_parse_date(), __()
!is_wp_error() && !empty($args) && rest_parse_hex_color()48–72is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && !empty($args) && is_email()48–76is_wp_error(), rest_validate_enum(), is_wp_error(), is_email()
!is_wp_error() && !empty($args) && rest_is_ip_address()48–78is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && !empty($args) && wp_is_uuid()48–80is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid()
!is_wp_error() && empty($args) && !rest_is_ip_address()49–79is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && empty($args) && !wp_is_uuid()49–81is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args)49–75is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args) && !rest_parse_hex_color()50–61rest_validate_null_value_from_schema(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && empty($args) && !is_email()50–65rest_validate_null_value_from_schema(), is_wp_error(), is_email(), __()
!is_wp_error() && empty($args) && !rest_parse_hex_color()50–63rest_validate_boolean_value_from_schema(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && empty($args) && !is_email()50–67rest_validate_boolean_value_from_schema(), is_wp_error(), is_email(), __()
$args && !is_wp_error() && !empty($args)50–75__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), rest_validate_enum(), is_wp_error()
!is_wp_error() && empty($args)51–64rest_validate_null_value_from_schema(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && empty($args)51–66rest_validate_boolean_value_from_schema(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && empty($args) && !rest_parse_hex_color()51–66rest_validate_object_value_from_schema(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && empty($args) && !is_email()51–70rest_validate_object_value_from_schema(), is_wp_error(), is_email(), __()
!is_wp_error() && empty($args) && !rest_parse_hex_color()51–68rest_validate_array_value_from_schema(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && empty($args) && !is_email()51–72rest_validate_array_value_from_schema(), is_wp_error(), is_email(), __()
!is_wp_error() && empty($args) && !rest_parse_hex_color()51–70rest_validate_number_value_from_schema(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && empty($args) && !is_email()51–74rest_validate_number_value_from_schema(), is_wp_error(), is_email(), __()
!is_wp_error() && empty($args) && !rest_parse_hex_color()51–72rest_validate_string_value_from_schema(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && empty($args) && !is_email()51–76rest_validate_string_value_from_schema(), is_wp_error(), is_email(), __()
!is_wp_error() && empty($args) && !rest_parse_hex_color()51–74rest_validate_integer_value_from_schema(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && empty($args) && !is_email()51–78rest_validate_integer_value_from_schema(), is_wp_error(), is_email(), __()
$args && !is_wp_error() && empty($args) && rest_parse_hex_color()51–60__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), rest_parse_hex_color()
$args && !is_wp_error() && empty($args) && is_email()51–64__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), is_email()
$args && !is_wp_error() && empty($args) && rest_is_ip_address()51–66__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), rest_is_ip_address()
$args && !is_wp_error() && empty($args) && wp_is_uuid()51–68__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), wp_is_uuid()
!is_wp_error() && empty($args)52–69rest_validate_object_value_from_schema(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && empty($args)52–71rest_validate_array_value_from_schema(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && empty($args)52–73rest_validate_number_value_from_schema(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && empty($args)52–75rest_validate_string_value_from_schema(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && empty($args)52–77rest_validate_integer_value_from_schema(), is_wp_error(), rest_parse_date(), __()
$args && !is_wp_error() && empty($args)52–63__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), rest_parse_date()
!is_wp_error() && !empty($args) && rest_parse_hex_color()53–64rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && !empty($args) && is_email()53–68rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email()
!is_wp_error() && !empty($args) && rest_is_ip_address()53–70rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && !empty($args) && wp_is_uuid()53–72rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid()
!is_wp_error() && !empty($args) && rest_parse_hex_color()53–66rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && !empty($args) && is_email()53–70rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email()
!is_wp_error() && !empty($args) && rest_is_ip_address()53–72rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && !empty($args) && wp_is_uuid()53–74rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid()
!is_wp_error() && empty($args) && !rest_is_ip_address()54–71rest_validate_null_value_from_schema(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && empty($args) && !wp_is_uuid()54–73rest_validate_null_value_from_schema(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args)54–67rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args) && !rest_is_ip_address()54–73rest_validate_boolean_value_from_schema(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && empty($args) && !wp_is_uuid()54–75rest_validate_boolean_value_from_schema(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args)54–69rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date()
!is_wp_error() && !empty($args) && rest_parse_hex_color()54–69rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && !empty($args) && is_email()54–73rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email()
!is_wp_error() && !empty($args) && rest_is_ip_address()54–75rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && !empty($args) && wp_is_uuid()54–77rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid()
!is_wp_error() && !empty($args) && rest_parse_hex_color()54–71rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && !empty($args) && is_email()54–75rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email()
!is_wp_error() && !empty($args) && rest_is_ip_address()54–77rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && !empty($args) && wp_is_uuid()54–79rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid()
!is_wp_error() && !empty($args) && rest_parse_hex_color()54–73rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && !empty($args) && is_email()54–77rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email()
!is_wp_error() && !empty($args) && rest_is_ip_address()54–79rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && !empty($args) && wp_is_uuid()54–81rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid()
!is_wp_error() && !empty($args) && rest_parse_hex_color()54–75rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && !empty($args) && is_email()54–79rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email()
!is_wp_error() && !empty($args) && rest_is_ip_address()54–81rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && !empty($args) && wp_is_uuid()54–83rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid()
!is_wp_error() && !empty($args) && rest_parse_hex_color()54–77rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && !empty($args) && is_email()54–81rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email()
!is_wp_error() && !empty($args) && rest_is_ip_address()54–83rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && !empty($args) && wp_is_uuid()54–85rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid()
!is_wp_error() && empty($args) && !rest_is_ip_address()55–76rest_validate_object_value_from_schema(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && empty($args) && !wp_is_uuid()55–78rest_validate_object_value_from_schema(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args)55–72rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args) && !rest_is_ip_address()55–78rest_validate_array_value_from_schema(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && empty($args) && !wp_is_uuid()55–80rest_validate_array_value_from_schema(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args)55–74rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args) && !rest_is_ip_address()55–80rest_validate_number_value_from_schema(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && empty($args) && !wp_is_uuid()55–82rest_validate_number_value_from_schema(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args)55–76rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args) && !rest_is_ip_address()55–82rest_validate_string_value_from_schema(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && empty($args) && !wp_is_uuid()55–84rest_validate_string_value_from_schema(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args)55–78rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args) && !rest_is_ip_address()55–84rest_validate_integer_value_from_schema(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && empty($args) && !wp_is_uuid()55–86rest_validate_integer_value_from_schema(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args)55–80rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date()
!is_wp_error() && !empty($args) && !rest_parse_hex_color()55–79is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && !empty($args) && !is_email()55–83is_wp_error(), rest_validate_enum(), is_wp_error(), is_email(), __()
!is_wp_error() && !empty($args)55–82__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error()
!is_wp_error() && !empty($args)55–84__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error()
!is_wp_error() && !empty($args)56–82is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && empty($args) && rest_parse_hex_color()56–67__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && empty($args) && is_email()56–71__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), is_email()
!is_wp_error() && empty($args) && rest_is_ip_address()56–73__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && empty($args) && wp_is_uuid()56–75__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), wp_is_uuid()
!is_wp_error() && empty($args) && rest_parse_hex_color()56–69__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && empty($args) && is_email()56–73__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), is_email()
!is_wp_error() && empty($args) && rest_is_ip_address()56–75__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && empty($args) && wp_is_uuid()56–77__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), wp_is_uuid()
!is_wp_error() && !empty($args)56–87__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error()
!is_wp_error() && !empty($args)56–89__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error()
!is_wp_error() && !empty($args)56–91__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error()
$args && !is_wp_error() && !empty($args)56–81__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error()
$args && !is_wp_error() && !empty($args)56–81__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error()
!is_wp_error() && empty($args)57–70__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args)57–72__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args) && rest_parse_hex_color()57–72__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && empty($args) && is_email()57–76__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), is_email()
!is_wp_error() && empty($args) && rest_is_ip_address()57–78__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && empty($args) && wp_is_uuid()57–80__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), wp_is_uuid()
!is_wp_error() && empty($args) && rest_parse_hex_color()57–74__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && empty($args) && is_email()57–78__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), is_email()
!is_wp_error() && empty($args) && rest_is_ip_address()57–80__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && empty($args) && wp_is_uuid()57–82__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), wp_is_uuid()
!is_wp_error() && empty($args) && rest_parse_hex_color()57–76__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && empty($args) && is_email()57–80__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), is_email()
!is_wp_error() && empty($args) && rest_is_ip_address()57–82__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && empty($args) && wp_is_uuid()57–84__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), wp_is_uuid()
$args && !is_wp_error() && empty($args) && rest_parse_hex_color()57–66__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), rest_parse_hex_color()
$args && !is_wp_error() && empty($args) && is_email()57–70__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), is_email()
$args && !is_wp_error() && empty($args) && rest_is_ip_address()57–72__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), rest_is_ip_address()
$args && !is_wp_error() && empty($args) && wp_is_uuid()57–74__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), wp_is_uuid()
$args && !is_wp_error() && empty($args) && rest_parse_hex_color()57–66__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), rest_parse_hex_color()
$args && !is_wp_error() && empty($args) && is_email()57–70__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), is_email()
$args && !is_wp_error() && empty($args) && rest_is_ip_address()57–72__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), rest_is_ip_address()
$args && !is_wp_error() && empty($args) && wp_is_uuid()57–74__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), wp_is_uuid()
!is_wp_error() && empty($args)58–75__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args)58–77__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args)58–79__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), rest_parse_date()
$args && !is_wp_error() && empty($args)58–69__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), rest_parse_date()
$args && !is_wp_error() && empty($args)58–69__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), rest_parse_date()
$args && !is_wp_error() && empty($args) && !rest_parse_hex_color()58–67__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), rest_parse_hex_color(), __()
$args && !is_wp_error() && empty($args) && !is_email()58–71__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), is_email(), __()
!is_wp_error() && !empty($args) && !rest_is_ip_address()59–89is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && !empty($args) && !wp_is_uuid()59–91is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid(), __(), sprintf()
$args && !is_wp_error() && empty($args)59–70__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && !empty($args) && !rest_parse_hex_color()60–71rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && !empty($args) && !is_email()60–75rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email(), __()
!is_wp_error() && !empty($args) && !rest_parse_hex_color()60–73rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && !empty($args) && !is_email()60–77rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email(), __()
!is_wp_error() && !empty($args)61–74rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && !empty($args)61–76rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && !empty($args) && !rest_parse_hex_color()61–76rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && !empty($args) && !is_email()61–80rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email(), __()
!is_wp_error() && !empty($args) && !rest_parse_hex_color()61–78rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && !empty($args) && !is_email()61–82rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email(), __()
!is_wp_error() && !empty($args) && !rest_parse_hex_color()61–80rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && !empty($args) && !is_email()61–84rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email(), __()
!is_wp_error() && !empty($args) && !rest_parse_hex_color()61–82rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && !empty($args) && !is_email()61–86rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email(), __()
!is_wp_error() && !empty($args) && !rest_parse_hex_color()61–84rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && !empty($args) && !is_email()61–88rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email(), __()
$args && !is_wp_error() && !empty($args) && rest_parse_hex_color()61–70__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color()
$args && !is_wp_error() && !empty($args) && is_email()61–74__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email()
$args && !is_wp_error() && !empty($args) && rest_is_ip_address()61–76__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address()
$args && !is_wp_error() && !empty($args) && wp_is_uuid()61–78__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid()
!is_wp_error() && !empty($args)62–79rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && !empty($args)62–81rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && !empty($args)62–83rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && !empty($args)62–85rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && !empty($args)62–87rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date(), __()
$args && !is_wp_error() && empty($args) && !rest_is_ip_address()62–77__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
$args && !is_wp_error() && empty($args) && !wp_is_uuid()62–79__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), wp_is_uuid(), __(), sprintf()
$args && !is_wp_error() && !empty($args)62–73__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args) && !rest_parse_hex_color()63–74__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && empty($args) && !is_email()63–78__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), is_email(), __()
!is_wp_error() && empty($args) && !rest_parse_hex_color()63–76__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && empty($args) && !is_email()63–80__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), is_email(), __()
!is_wp_error() && !empty($args) && !rest_is_ip_address()64–81rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && !empty($args) && !wp_is_uuid()64–83rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args) && !rest_is_ip_address()64–83rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && !empty($args) && !wp_is_uuid()64–85rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && empty($args)64–77__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && empty($args)64–79__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && empty($args) && !rest_parse_hex_color()64–79__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && empty($args) && !is_email()64–83__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), is_email(), __()
!is_wp_error() && empty($args) && !rest_parse_hex_color()64–81__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && empty($args) && !is_email()64–85__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), is_email(), __()
!is_wp_error() && empty($args) && !rest_parse_hex_color()64–83__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && empty($args) && !is_email()64–87__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), is_email(), __()
$args && !is_wp_error() && empty($args) && !rest_parse_hex_color()64–73__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), rest_parse_hex_color(), __()
$args && !is_wp_error() && empty($args) && !is_email()64–77__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), is_email(), __()
$args && !is_wp_error() && empty($args) && !rest_parse_hex_color()64–73__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), rest_parse_hex_color(), __()
$args && !is_wp_error() && empty($args) && !is_email()64–77__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), is_email(), __()
!is_wp_error() && !empty($args) && !rest_is_ip_address()65–86rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && !empty($args) && !wp_is_uuid()65–88rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args) && !rest_is_ip_address()65–88rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && !empty($args) && !wp_is_uuid()65–90rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args) && !rest_is_ip_address()65–90rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && !empty($args) && !wp_is_uuid()65–92rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args) && !rest_is_ip_address()65–92rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && !empty($args) && !wp_is_uuid()65–94rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args) && !rest_is_ip_address()65–94rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && !empty($args) && !wp_is_uuid()65–96rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && empty($args)65–82__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && empty($args)65–84__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && empty($args)65–86__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), rest_parse_date(), __()
$args && !is_wp_error() && empty($args)65–76__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), rest_parse_date(), __()
$args && !is_wp_error() && empty($args)65–76__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && !empty($args) && rest_parse_hex_color()66–77__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && !empty($args) && is_email()66–81__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email()
!is_wp_error() && !empty($args) && rest_is_ip_address()66–83__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && !empty($args) && wp_is_uuid()66–85__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid()
!is_wp_error() && !empty($args) && rest_parse_hex_color()66–79__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && !empty($args) && is_email()66–83__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email()
!is_wp_error() && !empty($args) && rest_is_ip_address()66–85__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && !empty($args) && wp_is_uuid()66–87__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid()
!is_wp_error() && empty($args) && !rest_is_ip_address()67–84__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && empty($args) && !wp_is_uuid()67–86__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args)67–80__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args) && !rest_is_ip_address()67–86__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && empty($args) && !wp_is_uuid()67–88__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args)67–82__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date()
!is_wp_error() && !empty($args) && rest_parse_hex_color()67–82__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && !empty($args) && is_email()67–86__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email()
!is_wp_error() && !empty($args) && rest_is_ip_address()67–88__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && !empty($args) && wp_is_uuid()67–90__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid()
!is_wp_error() && !empty($args) && rest_parse_hex_color()67–84__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && !empty($args) && is_email()67–88__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email()
!is_wp_error() && !empty($args) && rest_is_ip_address()67–90__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && !empty($args) && wp_is_uuid()67–92__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid()
!is_wp_error() && !empty($args) && rest_parse_hex_color()67–86__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color()
!is_wp_error() && !empty($args) && is_email()67–90__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email()
!is_wp_error() && !empty($args) && rest_is_ip_address()67–92__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address()
!is_wp_error() && !empty($args) && wp_is_uuid()67–94__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid()
$args && !is_wp_error() && !empty($args) && rest_parse_hex_color()67–76__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color()
$args && !is_wp_error() && !empty($args) && is_email()67–80__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email()
$args && !is_wp_error() && !empty($args) && rest_is_ip_address()67–82__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address()
$args && !is_wp_error() && !empty($args) && wp_is_uuid()67–84__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid()
$args && !is_wp_error() && !empty($args) && rest_parse_hex_color()67–76__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color()
$args && !is_wp_error() && !empty($args) && is_email()67–80__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email()
$args && !is_wp_error() && !empty($args) && rest_is_ip_address()67–82__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address()
$args && !is_wp_error() && !empty($args) && wp_is_uuid()67–84__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid()
!is_wp_error() && empty($args) && !rest_is_ip_address()68–89__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && empty($args) && !wp_is_uuid()68–91__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args)68–85__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args) && !rest_is_ip_address()68–91__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && empty($args) && !wp_is_uuid()68–93__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args)68–87__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date()
!is_wp_error() && empty($args) && !rest_is_ip_address()68–93__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && empty($args) && !wp_is_uuid()68–95__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args)68–89__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date()
$args && !is_wp_error() && empty($args) && !rest_is_ip_address()68–83__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
$args && !is_wp_error() && empty($args) && !wp_is_uuid()68–85__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), wp_is_uuid(), __(), sprintf()
$args && !is_wp_error() && !empty($args)68–79__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date()
$args && !is_wp_error() && empty($args) && !rest_is_ip_address()68–83__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
$args && !is_wp_error() && empty($args) && !wp_is_uuid()68–85__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), wp_is_uuid(), __(), sprintf()
$args && !is_wp_error() && !empty($args)68–79__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date()
$args && !is_wp_error() && !empty($args) && !rest_parse_hex_color()68–77__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color(), __()
$args && !is_wp_error() && !empty($args) && !is_email()68–81__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email(), __()
$args && !is_wp_error() && !empty($args)69–80__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date(), __()
$args && !is_wp_error() && !empty($args) && !rest_is_ip_address()72–87__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
$args && !is_wp_error() && !empty($args) && !wp_is_uuid()72–89__(), wp_sprintf(), _doing_it_wrong(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args) && !rest_parse_hex_color()73–84__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && !empty($args) && !is_email()73–88__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email(), __()
!is_wp_error() && !empty($args) && !rest_parse_hex_color()73–86__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && !empty($args) && !is_email()73–90__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email(), __()
!is_wp_error() && !empty($args)74–87__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && !empty($args)74–89__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && !empty($args) && !rest_parse_hex_color()74–89__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && !empty($args) && !is_email()74–93__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email(), __()
!is_wp_error() && !empty($args) && !rest_parse_hex_color()74–91__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && !empty($args) && !is_email()74–95__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email(), __()
!is_wp_error() && !empty($args) && !rest_parse_hex_color()74–93__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color(), __()
!is_wp_error() && !empty($args) && !is_email()74–97__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email(), __()
$args && !is_wp_error() && !empty($args) && !rest_parse_hex_color()74–83__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color(), __()
$args && !is_wp_error() && !empty($args) && !is_email()74–87__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email(), __()
$args && !is_wp_error() && !empty($args) && !rest_parse_hex_color()74–83__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_hex_color(), __()
$args && !is_wp_error() && !empty($args) && !is_email()74–87__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), is_email(), __()
!is_wp_error() && !empty($args)75–92__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && !empty($args)75–94__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && !empty($args)75–96__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date(), __()
$args && !is_wp_error() && !empty($args)75–86__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date(), __()
$args && !is_wp_error() && !empty($args)75–86__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_parse_date(), __()
!is_wp_error() && !empty($args) && !rest_is_ip_address()77–94__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && !empty($args) && !wp_is_uuid()77–96__(), wp_sprintf(), _doing_it_wrong(), rest_validate_null_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args) && !rest_is_ip_address()77–96__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && !empty($args) && !wp_is_uuid()77–98__(), wp_sprintf(), _doing_it_wrong(), rest_validate_boolean_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args) && !rest_is_ip_address()78–99__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && !empty($args) && !wp_is_uuid()78–101__(), wp_sprintf(), _doing_it_wrong(), rest_validate_object_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args) && !rest_is_ip_address()78–101__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && !empty($args) && !wp_is_uuid()78–103__(), wp_sprintf(), _doing_it_wrong(), rest_validate_array_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid(), __(), sprintf()
!is_wp_error() && !empty($args) && !rest_is_ip_address()78–103__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
!is_wp_error() && !empty($args) && !wp_is_uuid()78–105__(), wp_sprintf(), _doing_it_wrong(), rest_validate_number_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid(), __(), sprintf()
$args && !is_wp_error() && !empty($args) && !rest_is_ip_address()78–93__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
$args && !is_wp_error() && !empty($args) && !wp_is_uuid()78–95__(), wp_sprintf(), _doing_it_wrong(), rest_validate_string_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid(), __(), sprintf()
$args && !is_wp_error() && !empty($args) && !rest_is_ip_address()78–93__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), rest_is_ip_address(), __(), sprintf()
$args && !is_wp_error() && !empty($args) && !wp_is_uuid()78–95__(), wp_sprintf(), _doing_it_wrong(), rest_validate_integer_value_from_schema(), is_wp_error(), rest_validate_enum(), is_wp_error(), wp_is_uuid(), __(), sprintf()

This body has more branch combinations than are worth enumerating, so the table covers the outcomes found first rather than every one that exists.

Across PHP versions

PHPCompiledExecutedBranchesNotes
8.6-dev28725–10538
8.528725–10538
8.428725–105386 fewer instructions than PHP 8.3
8.329325–10838
8.229325–108382 more instructions than PHP 8.1
8.129125–9938
7.429125–9938

An instruction is not a fixed amount of time, so a matching count is not necessarily the same speed; what it rules out is a difference in the work itself.

Uses · 21

Show all 21

Used by · 19

Show all 19

Source code

function rest_validate_value_from_schema( $value, $args, $param = '' ) {	if ( isset( $args['anyOf'] ) ) {		$matching_schema = rest_find_any_matching_schema( $value, $args, $param );		if ( is_wp_error( $matching_schema ) ) {			return $matching_schema;		} 		if ( ! isset( $args['type'] ) && isset( $matching_schema['type'] ) ) {			$args['type'] = $matching_schema['type'];		}	} 	if ( isset( $args['oneOf'] ) ) {		$matching_schema = rest_find_one_matching_schema( $value, $args, $param );		if ( is_wp_error( $matching_schema ) ) {			return $matching_schema;		} 		if ( ! isset( $args['type'] ) && isset( $matching_schema['type'] ) ) {			$args['type'] = $matching_schema['type'];		}	} 	$allowed_types = array( 'array', 'object', 'string', 'number', 'integer', 'boolean', 'null' ); 	if ( ! isset( $args['type'] ) ) {		/* translators: %s: Parameter. */		_doing_it_wrong( __FUNCTION__, sprintf( __( 'The "type" schema keyword for %s is required.' ), $param ), '5.5.0' );	} 	if ( is_array( $args['type'] ) ) {		$best_type = rest_handle_multi_type_schema( $value, $args, $param ); 		if ( ! $best_type ) {			return new WP_Error(				'rest_invalid_type',				/* translators: 1: Parameter, 2: List of types. */				sprintf( __( '%1$s is not of type %2$s.' ), $param, implode( ',', $args['type'] ) ),				array( 'param' => $param )			);		} 		$args['type'] = $best_type;	} 	if ( ! in_array( $args['type'], $allowed_types, true ) ) {		_doing_it_wrong(			__FUNCTION__,			/* translators: 1: Parameter, 2: The list of allowed types. */			wp_sprintf( __( 'The "type" schema keyword for %1$s can only be one of the built-in types: %2$l.' ), $param, $allowed_types ),			'5.5.0'		);	} 	switch ( $args['type'] ) {		case 'null':			$is_valid = rest_validate_null_value_from_schema( $value, $param );			break;		case 'boolean':			$is_valid = rest_validate_boolean_value_from_schema( $value, $param );			break;		case 'object':			$is_valid = rest_validate_object_value_from_schema( $value, $args, $param );			break;		case 'array':			$is_valid = rest_validate_array_value_from_schema( $value, $args, $param );			break;		case 'number':			$is_valid = rest_validate_number_value_from_schema( $value, $args, $param );			break;		case 'string':			$is_valid = rest_validate_string_value_from_schema( $value, $args, $param );			break;		case 'integer':			$is_valid = rest_validate_integer_value_from_schema( $value, $args, $param );			break;		default:			$is_valid = true;			break;	}

Changelog

Introduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

5.6.0
Support the "minProperties" and "maxProperties" keywords for objects.
Support the "multipleOf" keyword for numbers and integers.
Support the "patternProperties" keyword for objects.
Support the "anyOf" and "oneOf" keywords.from the docblock
5.5.0
Add the "uuid" and "hex-color" formats.
Support the "minLength", "maxLength" and "pattern" keywords for strings.
Support the "minItems", "maxItems" and "uniqueItems" keywords for arrays.
Validate required properties.from the docblock
5.4.0
Convert an empty string to an empty object.from the docblock
5.3.0
Support multiple types.from the docblock
5.2.0
Support validating "additionalProperties" against a schema.from the docblock
4.9.0
Support the "object" type.from the docblock
4.7.0
Introduced.from the docblock

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/rest-api.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.