acf/validate_value/type={$field[type]}
acf/validate_value/type={$field[type]}
Appears in: advanced-custom-fields.6.3.1
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.3.1apply_filters('acf/validate_value/type={$field[type]}') is found 1 times:
- /includes/validation.php line 335331332333334335336337338339340341
* @param mixed
$value
The value.
* @param
array
$field
The field
array
.
* @param string
$input
The input element's name attribute.
*/
$valid
= apply_filters(
"acf/validate_value/type={$field['type']}"
,
$valid
,
$value
,
$field
,
$input
);
$valid
= apply_filters(
"acf/validate_value/name={$field['_name']}"
,
$valid
,
$value
,
$field
,
$input
);
$valid
= apply_filters(
"acf/validate_value/key={$field['key']}"
,
$valid
,
$value
,
$field
,
$input
);
$valid
= apply_filters(
'acf/validate_value'
,
$valid
,
$value
,
$field
,
$input
);
// allow $valid to be a custom error message
if
( !
empty
(
$valid
) &&
is_string
(
$valid
) ) {