How to disable wp_emojicons in your functions.php

How to disable wp_emojicons in your functions.php

Emojis are little icons used to express ideas or emotions

Don’t forget to back-up your functions.php before implementing these codes. WordPress automatically loads the file wp-emoji-release.min.js on the front-end of your WordPress website to help loading emojis that are part of the blogging feature of WordPress. This can slow your WordPress Website. So it is a good idea to disable wp_emojicons in your WordPress website installation.

WordPress Emojis is great for the users who need it, but most of the WordPress developers and professional websites have no need for emojis on their WordPress website. This of course can be easily ignored, as it is a few lines of code which need to be implemented in your theme functions.php file. However, it is a script that is being loaded into your WordPress site, and does factor into the loading speed of your site, no matter how little is impact can be. Disabling WordPress Emojies can help and Speed up your website.

Adding this code will remove wp-emoji-release.min.js and stop it from loading on your WordPress site. Again, do this only if you you’re not using emojis on your WordPress Website!

Removing this script is very easy and you need to add a few lines of code below in your functions.php file

Add these few lines of code to a PHP file that is being loaded, such as the functions.php file in your theme. Alternatively, you can create a very simple plugin with just that code in it.

function disable_wp_emojicons() {

  // all actions related to emojis
  remove_action( 'admin_print_styles', 'print_emoji_styles' );
  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_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
  remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
  remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );

  // filter to remove TinyMCE emojis
  add_filter( 'tiny_mce_plugins', 'disable_emojicons_tinymce' );
add_action( 'init', 'disable_wp_emojicons' );

function disable_emojicons_tinymce( $plugins ) {
  if ( is_array( $plugins ) ) {
    return array_diff( $plugins, array( 'wpemoji' ) );
  } else {
    return array();

add_filter( 'emoji_svg_url', '__return_false' );

Another bigger impact of disabling WordPress emojis, is the fact that it loads in the head of your WordPress website, and tools such like Google Page Speed Insights or Pingdom identify it as render-blocking JavaScript. This is something you will want to address if you are concerned with site loading time and site speed optimisation. Every SEO know the optimizing your website speed, is a big factor into improving your SEO score for the most Search engines like Google, Yahoo and Bing.

Autor: wpsnipp | Modified: April 22, 2019 at 9:45 pm

Leave a Reply

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

  • That’s awesome this piece of code speed my site results in GT Metrix and Pingdom. Thanks

  • Free Stuff says:

    Woah! I’m really digging the template/theme of this site. It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between usability and visual appeal. I must say you have done a excellent job with this. Also, the blog loads very quick for me on Chrome. Superb Blog!

  • Nery Halle says:

    I really like your blog, So thanks a lot for these great information and keep the good work shared as usual.Thanks, I will share it on Here

  • Jamie Dockson says:

    Thank you for sharing superb informations. Your web site is so cool. I’m impressed by the details that you’ve on this website. It reveals how nicely you perceive this subject. Bookmarked this web page, will come back for more articles. You, my pal, ROCK! I found just the info I already searched all over the place and just could not come across. What an ideal site.

  • Free Stuff says:

    Hi there! I know this is kinda off topic but I was wondering which blog platform are you using for this site? I’m getting sick and tired of WordPress because I’ve had problems with hackers and I’m looking at alternatives for another platform. I would be awesome if you could point me in the direction of a good platform.

  • Hairstyles says:

    Hello! I’ve been following your weblog for a while now and finally got the courage to go ahead and give you a shout out from Porter Texas! Just wanted to tell you keep up the fantastic job!

  • Freebies says:

    Excellent post. I used to be checking constantly this weblog and I’m inspired! Very useful info particularly the last phase 🙂 I handle such information much. I used to be looking for this certain information for a long time. Thanks and best of luck.

  • Genevieve Fernandez says:

    I cannot thank you enough for the article.Really thank you! Keep writing!

  • AffiliateLabz says:

    Great content! Super high-quality! Keep it up! 🙂

  • Arthur Rychlewski says:

    I am doing all of that, link farms, buying links on fiverr, spamming guest books and comment sections, etc. Guess what,I am getting a ton of traffic with blackhat seo and never got a penalty. Don´t believe iPenuin, Panda and all those fairy tales they are telling you. Google is dumb as fuck!

  • Advertising

    Related posts

    What does the_content and get_the_content do in WordPress?

    What do the_content and get_the_content do in WordPress?

    The WordPress functions the_content and get_the_content are used to pull the main text area from the page or post. The difference between them …

    Change The Color Of Wordpress Admin Dashboard Icon In The Menu

    How to change Dash icon color in WordPress admin menu with CSS?

    Change the default color for dash icon in the admin menu Probably you have this question when you create a Custom WordPress Theme …

    Wordpress Resources | Snippets | Themes

    Do you need a custom Wordpress Template?

    You are on the right place if you need specific design, functions or template/s for your WordPress website. Did you ever ask some of the Questions Below?
    • How do I create a custom WordPress template?
    • How customisable is WordPress?
    • How much does a custom WordPress theme cost?
    • How do I edit the content of my WordPress site?
    • How do I create a menu in Wordpress?
    • What is the default template in Wordpress?
    • How do I upload a theme to Wordpress?
    • How do I create a new page in Wordpress?
    • How do I add a template to Wordpress?
    • How do I add a subpage in Wordpress?
    • How old is Wordpress?
    • What are Wordpress pages?
    • How can I create a template?
    • How do I change my theme in Wordpress?
    • What is a taxonomy in Wordpress?
    • Can you copy a page in Wordpress?
    • How do I convert HTML to Wordpress?
    • How do I change the layout of one page in Wordpress?
    • How do I set a front page in Wordpress?
    • How do I change the layout of my Wordpress blog?
    • How do I change the header in Wordpress?
    • How do I change the header text in Wordpress?
    • How do I edit the top bar in Wordpress?
    • How do I change the top header in Wordpress?
    • How do I change my logo in Wordpress?
    • How do I edit headers and footers in Wordpress?
    • How do I hide the admin bar in Wordpress?
    • How do I hide the toolbar in Wordpress?
    • How do I edit text on a Wordpress site?
    • How do I remove the Powered by Wordpress?
    • How do I change my social media links on Wordpress?
    • How do I add my Instagram feed to Wordpress?
    • How do I link Facebook to my Wordpress website?