Script is still present in wp-admin
-
Hello, thank you for plugin.
I got an issue to report: at least from WP 6.0, emoji script is still present in wp admin (you can inspect the source code of any wp-admin page and search for “emoji”).
This is because “remove_action( ‘admin_print_scripts’, ‘print_emoji_detection_script’ );” is called before the hook is actually added by WP. To make it work you need to call it afterward, like from “admin_init” hook:
function disable_emojis_admin() { remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); } add_action( 'admin_init', 'disable_emojis_admin' );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Script is still present in wp-admin’ is closed to new replies.