acf/prevent_access_to_unknown_fields
acf/prevent_access_to_unknown_fields
Appears in: advanced-custom-fields.5.12.1
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.5.12.1apply_filters('acf/prevent_access_to_unknown_fields') is found 2 times:
- /includes/acf-value-functions.php line 69
// If we don't have a proper field array, the field doesn't exist currently. if ( empty( $field['type'] ) && empty( $field['key'] ) ) { if ( apply_filters( 'acf/prevent_access_to_unknown_fields', false ) || ( 'option' === $decoded['type'] && 'options' !== $decoded['id'] ) ) { return null; } do_action( 'acf/get_invalid_field_value', $field, __FUNCTION__ ); }
- /includes/api/api-template.php line 877
$atts, 'acf' ); $access_already_prevented = apply_filters( 'acf/prevent_access_to_unknown_fields', false ); $filter_applied = false; if ( ! $access_already_prevented ) { $filter_applied = true; add_filter( 'acf/prevent_access_to_unknown_fields', '__return_true' ); }