acf/will_remove_unsafe_html
acf/will_remove_unsafe_html
Appears in: advanced-custom-fields.6.2.6.1
Hook Type: action
Displaying hooks found in version: advanced-custom-fields.6.2.6.1do_action('acf/will_remove_unsafe_html') is found 2 times:
- /includes/api/api-template.php line 126
if ( apply_filters( 'acf/the_field/escape_html_optin', false ) ) { $value = $new_value; do_action( 'acf/removed_unsafe_html', __FUNCTION__, $selector, $field, $post_id ); } else { do_action( 'acf/will_remove_unsafe_html', __FUNCTION__, $selector, $field, $post_id ); } } unset( $new_value ); } echo $value; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped by logic above.
- /includes/api/api-template.php line 980
if ( apply_filters( 'acf/the_field/escape_html_optin', false ) ) { $value = $new_value; do_action( 'acf/removed_unsafe_html', __FUNCTION__, $field_name, $field, false ); } else { do_action( 'acf/will_remove_unsafe_html', __FUNCTION__, $field_name, $field, false ); } } unset( $new_value ); } echo $value; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped inside get_sub_field_object where necessary.