acf/removed_unsafe_html

acf/removed_unsafe_html

Hook Type: action

See hook in core

Displaying hooks found in version: advanced-custom-fields.6.2.6.1

do_action('acf/removed_unsafe_html') is found 3 times:

  • /includes/api/api-template.php line 124
     
    		if ( (string) $value !== (string) $new_value ) {
    			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 );
    	}
    
  • /includes/api/api-template.php line 978
     
    		if ( (string) $value !== (string) $new_value ) {
    			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 );
    	}
    
  • /includes/api/api-template.php line 1155
    	// Handle getting the unescaped version if we're allowed unsafe html.
    	if ( apply_filters( 'acf/shortcode/allow_unsafe_html', false, $atts, $field_type, $field ) ) {
    		$value = $unescaped_value;
    	} elseif ( (string) $value !== (string) $unescaped_value ) {
    		do_action( 'acf/removed_unsafe_html', __FUNCTION__, $atts['field'], $field, $atts['post_id'] );
    	}
    
    	return $value;
    }
    add_shortcode( 'acf', 'acf_shortcode' );