How To Disable Emojis In WordPress

Some of us love emojis and some of us hate them. Support for emojis was added to WordPress back in version 4.2, but a small unknown fact about WordPress is that emojis actually slow down your site. In this post, we will teach you how to disable emojis in your WordPress to speed up your site.

A quick way to disable emojis is to use a plugin like Disable emojis, but for more experienced WordPress users you can simply head over to your functions.php file and add the following code that will disable all emojis and remove them from the whole page.

* Disable the emoji's
function disable_emojis() {
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );
remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );

// Remove from TinyMCE
add_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' );
add_action( 'init', 'disable_emojis' );
* Filter out the tinymce emoji plugin.
function disable_emojis_tinymce( $plugins ) {
if ( is_array( $plugins ) ) {
return array_diff( $plugins, array( 'wpemoji' ) );
} else {
return array();

And that’s it. Your site should now be free of emojis. To find out the effect it might have had on your site speed, use the Google PageSpeed Insight tool.

If you liked this small guide check out more at




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

New beginnings as a Design Intern at a startup

Silence Is Violence — The Design Community Cannot Stay Quiet

ShareWorthy: tackling loneliness by connecting skill-bearers, knowledge holders and storytellers

UI/UX Case Study: WinSalvo

6 Design Guidelines to use while Designing Human Centered User Interface

New Media: Home Innovation Challenge Research and Analyse

Book Review — Welcome Indeed.

5 Signs Your Moving Search is Out of Whack

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Blog Inbox

Blog Inbox

More from Medium

How To Create A Shortcode In WordPress

How to Lazy-Load Images in Drupal

How to Get WooCommerce Cart Items Info?

How to Get WooCommerce Cart Items Info?

WordPress Security(Part 01)