acf/admin/prevent_escaped_html_notice
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/admin/prevent_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 ) ) {