loading...
Cover image for How to Disable Emojis in WordPress

How to Disable Emojis in WordPress

lucagrandicelli profile image Luca Grandicelli Updated on ・1 min read

When it comes to website speed performance, limiting the amount of HTTP calls is crucial, even if we're sparing a couple of bytes.

Since v4.2, Wordpess introduced support for emoji right into the core for older browsers, but it's likely you don't need it at all. So here's a little gist to help you through, removing any reference to the wp-emoji-release.min.js file.


Found a typo? Make a PR

Discussion

pic
Editor guide
 

remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );