Disabling Emoji’s in WordPress 4.2+

Released last week, WordPress 4.2 now has support for emoji’s, all 872 of them. Twitter has open sourced and released their set for everyone to use.

What are Eomji’s?

Emoji’s are an advanced set of Emoticons, and can be added in Pages and Posts. Using your smartphone, or tablet, you have likely noticed the Emoji’s in the keyboard area. Emoji’s range from crazy smiley faces, hands, animals, and somehow even a smiling pile of poop is in the mix. I’d love to meet the Senior UX Developer who came up with that one.


Emoji’s In WordPress

Wordpress 4.2+ Emoji's

If you have WordPress 4.2+ installed, Emoji’s are already at your disposal. The downside is that your frontend now has an extra script that needs to be loaded every time, which slows down site speed, and adds another HTTP request. Boo!

Adding Emoji’s to posts

Mac users on Yosemite can insert an emoji by tapping Command + Control + Space while in the Text Editor

Windows 8 or newer users have a special touch keyboard in WordPress with support for emoji’s.

Windows 7 and below users can copy and paste emoji’s from sites like GetEmoji.com.

Removing Emoji’s via functions.php

If you dont need Emoji functionality, you can remove these in a couple ways. First is via plugins like Disable Emoji’s WordPress plugin, and second is via your theme’s functions.php file using the code below.

remove_action( ‘wp_head’, ‘print_emoji_detection_script’, 7 );
remove_action( ‘wp_print_styles’, ‘print_emoji_styles’ );

Leave a Response

* Name, Email, Comment are Required