acf/the_field/escape_html_optin

acf/the_field/escape_html_optin

Hook Type: filter

See hook in core

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

apply_filters('acf/the_field/escape_html_optin') is found 4 times:

  • /includes/admin/admin.php line 237
    				acf_get_view( 'escaped-html-notice', array( 'acf_escaped' => $escaped ) );
    			}
    
    			// Throw a separate notice for HTML that will be escaped in future releases.
    			if ( ! apply_filters( 'acf/the_field/escape_html_optin', false ) ) {
    				$will_escape = _acf_get_will_escape_html_log();
    
    				if ( ! empty( $will_escape ) ) {
    					acf_get_view( 'escaped-html-notice', array( 'acf_will_escape' => $will_escape ) );
    				}
    			}
    
  • /includes/admin/views/escaped-html-notice.php line 30
    	);
    } else {
    	$acf_class .= ' notice-error';
    
    	if ( apply_filters( 'acf/the_field/escape_html_optin', false ) ) {
    		$acf_error_msg = sprintf(
    		/* translators: %1$s - name of the ACF plugin. %2$s - Link to documentation. %3$s - Link to show more details about the error */
    			__( '%1$s ACF now automatically escapes unsafe HTML when rendered by <code>the_field</code> or the ACF shortcode. We\'ve detected the output of some of your fields has been modified by this change, but this may not be a breaking change. %2$s. %3$s.', 'acf' ),
    			$acf_plugin_name,
    			$acf_learn_how_to_fix,
    			$acf_show_details
    
  • /includes/api/api-template.php line 122
    			$new_value = acf_esc_html( $new_value );
    		}
    
    		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 );
    			}
    		}
    
  • /includes/api/api-template.php line 976
    			$new_value = acf_esc_html( $new_value );
    		}
    
    		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 );
    			}
    		}