acf/get_invalid_field_value
acf/get_invalid_field_value
Appears in: advanced-custom-fields.5.12.1
Hook Type: action
Displaying hooks found in version: advanced-custom-fields.5.12.1do_action('acf/get_invalid_field_value') is found 1 times:
- /includes/acf-value-functions.php line 73
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__ ); } // If we're using a non options_ option key, ensure we have a valid reference key. if ( 'option' === $decoded['type'] && 'options' !== $decoded['id'] ) { $meta = acf_get_metadata( $post_id, $field_name, true ); if ( ! $meta || $meta !== $field['key'] ) {