Disable emojis in WordPress

WordPress is and remains my great passion, but some decisions are simply highly controversial and sometimes simply idiotic. Like the latest idea with the emoji support. No one really uses it, no one in this world really needs it and yet the Emojis since WordPress 4.2 to the core of WordPress. Again, this is a problem for me because they cannot be deactivated by default and therefore have a direct influence on the performance of WordPress. If anyone would really want the emojis, that would be okay and I could live with it, but it is just a superfluous gimmick with over 100 lines of additional code. Since WordPress 4.2 the wp-emoji-release.min.js into the header, fully automatically and without the possibility to deactivate the whole thing. Well, there is one possibility, just no official option to disable it. How you can deactivate the emojis in WordPress anyway, I'll show you here.

Add the following to the Functions.php of your theme:

function remove_emoji()
	{
	remove_action('wp_head', 'print_emoji_detection_script', 7);
	remove_action('admin_print_scripts', 'print_emoji_detection_script');
	remove_action('admin_print_styles', 'print_emoji_detection_script');
	remove_action('wp_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');
	add_filter('tiny_mce_plugins', 'remove_tinymce_emoji');
	}
add_action('init', 'remove_emoji');
function remove_tinymce_emoji($plugins)
	{
	if (!is_array($plugins))
		{
		return array();
		}
	return array_diff($plugins, array(
		wpemoji
	));
	}

...or install the following plugin

If you are not so familiar with WordPress, or if you simply prefer to install a plugin instead of adding some code, you should go to the WordPress Plugin Disable Emojis grab. This disables the emojis in WordPress in a regular way and just like the snippet above. You should use one of the two possibilities, because if you don't use emojis, you don't need their ballast in the head of the page.

Emojis in WordPress are superfluous

The snippet above removes now simply and directly the complete emoji support from WordPress. On the one hand, it no longer automatically removes the wp-emoji-release.min.js into the head of your page, on the other hand no additional Inline CSS. In the backend TinyMCE is also cleaned up, so the Emoji plugin for the editor is also completely disabled. Why I have to add extra code for this is still a mystery to me, because in my opinion emojis are not something that necessarily belongs in the core of a CMS.

Pure abundance, total bollocks and absolute crap. Sorry, but that just had to be said so directly, because WordPress really has other problems that should be taken care of. Instead you get an emoji support that nobody wants, that automatically forces itself on you and that eventually also degrades the performance of your WordPress blog. So if you don't use emojis, you should disable support for them. The Clean up the head of WordPressbut it's compulsory anyway.

About Christian

My name is Christian and I am co-founder of the platform fastWP. Here in the magazine I am responsible for the more "technical" topics but I like to write about SEO, which has been my passion for over 10 years now.

1 thought on “WordPress Emoji-Support deaktivieren”

  1. Marie Genzelberger

    In customer projects I also come across the fact that the emojis have to be deactivated. Besides the styles, there is also a database entry in the options that needs to be deactivated to actually disable the feature completely. This simple plugin here does it all: remove CSS and update the option in the database: https://wordpress.org/plugins/really-disable-emojis/

Leave a Comment

Your email address will not be published. Required fields are marked *

en_GB