acf/admin/prevent_escaped_html_notice filter-hookACF 6.2.5

Logs instances of ACF successfully escaping unsafe HTML.

Usage

add_filter( 'acf/admin/prevent_escaped_html_notice', 'wp_kama_acf_admin_prevent_escaped_html_notice_filter' );

/**
 * Function for `acf/admin/prevent_escaped_html_notice` filter-hook.
 * 
 * @param string $function The function that resulted in HTML being escaped.
 *
 * @return string
 */
function wp_kama_acf_admin_prevent_escaped_html_notice_filter( $function ){
	// filter...
	return $function;
}
$function(string)
The function that resulted in HTML being escaped.

Changelog

Since 6.2.5 Introduced.

Where the hook is called

_acf_log_escaped_html()
acf/admin/prevent_escaped_html_notice
ACF_Admin::maybe_show_escaped_html_notice()
acf/admin/prevent_escaped_html_notice
acf/includes/api/api-template.php 154
if ( apply_filters( 'acf/admin/prevent_escaped_html_notice', true ) ) {
acf/includes/admin/admin.php 228
if ( apply_filters( 'acf/admin/prevent_escaped_html_notice', true ) ) {

Where the hook is used in Advanced Custom Fields PRO

Usage not found.