Whenever we detect that escaping the field value has modified the output value, ACF will log data about the affected function call. …
This log is stored as an option in the?wp_options
?table. Whenever this log contains entries, the notices in WordPress admin will be shown for all users with the “Editor” role and higher by default. …
Admin users have the ability to dismiss the message, which will also clear the log. Dismissing the notice after you’ve made fixes will allow you to verify you’ve fixed every instance, as the message will not return after the affected pages have been loaded.
[But if no fixes are needed and you don’t change the underlying code…]
If you want to disable the error messages entirely, this is also possible via the following filter:
add_filter( 'acf/admin/prevent_escaped_html_notice', '__return_true' );
This filter will also disable the log being populated when set to true. You can hide the notice on admin pages while retaining the log system on the front-end by ensuring you only add the filter in an?is_admin()
?check, and including the necessary logic to limit it to specific users or roles.
ACF 6.2.5 Security Release
So yes, it seems that there is a mechanism for disabling the notice without making code changes to the effected templates. But a simple checkbox to accomplish this without the need to add code to the functions.php file would be a nice courtesy.