acf/validate_rest_value/type=
acf/validate_rest_value/type=
Appears in: advanced-custom-fields.6.3.5
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.3.5apply_filters('acf/validate_rest_value/type=') is found 1 times:
- /includes/rest-api/class-acf-rest-api.php line 176172173174175176177178179180181
* @param bool
$valid
True
if
the value is valid, false
or
WP_Error
if
not.
* @param mixed
$value
The value to check.
* @param
array
$field
An
array
of information about the field.
*/
$valid
= apply_filters(
'acf/validate_rest_value/type='
.
$field
[
'type'
], true,
$field_value
,
$field
);
if
( true !==
$valid
) {
return
$valid
;
}
}