acf/the_field/allow_unsafe_html
acf/the_field/allow_unsafe_html
Appears in: advanced-custom-fields.6.2.6.1
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.2.6.1apply_filters('acf/the_field/allow_unsafe_html') is found 2 times:
- /includes/api/api-template.php line 109
} $field_type = is_array( $field ) && isset( $field['type'] ) ? $field['type'] : 'text'; if ( ! apply_filters( 'acf/the_field/allow_unsafe_html', false, $selector, $post_id, $field_type, $field ) ) { $new_value = get_field( $selector, $post_id, $format_value, $format_value ); if ( is_array( $new_value ) ) { $new_value = implode( ', ', $new_value ); }
- /includes/api/api-template.php line 962
} $field_type = is_array( $field ) && isset( $field['type'] ) ? $field['type'] : 'text'; if ( ! apply_filters( 'acf/the_field/allow_unsafe_html', false, $field_name, 'sub_field', $field_type, $field ) ) { $field = get_sub_field_object( $field_name, $format_value, true, true ); $new_value = ( is_array( $field ) && isset( $field['value'] ) ) ? $field['value'] : false; if ( is_array( $new_value ) ) { $new_value = implode( ', ', $new_value ); }