Skip to content

Instantly share code, notes, and snippets.

@mt8
Created May 9, 2024 00:17
Show Gist options
  • Save mt8/65a0153f6d6c1ed2fd7eb56f030fdc2d to your computer and use it in GitHub Desktop.
Save mt8/65a0153f6d6c1ed2fd7eb56f030fdc2d to your computer and use it in GitHub Desktop.
[WordPress] ACF 6.2.9 からの the_field() の自動エスケープを強制的にさせないコード
<?php
add_filter( 'acf/the_field/allow_unsafe_html', function ( $allowed, $atts ) {
return true;
}, 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment