How Do Disable Emoji Icons In WordPress

geekerhub

Updated on:

Disable Emoji Icons

If you are running a WordPress website, you may have noticed that the platform includes emoji icons by default. While emojis can add a fun and playful element to your site, they can also slow down its loading time and affect its performance. In this article, we will guide you through the steps to disable emoji icons in WordPress. By turning off emojis, you can speed up your site and enhance its functionality without compromising its design or user experience.

We’ll Disable Emoji Icons on this blog without the need for a plugin.

Disabling Emoji Icons in WordPress: A Step-by-Step Guide

WordPress is a popular content management system that offers various features and functionalities, including the use of emoji icons. While emojis can add a touch of creativity and fun to your website, you might have a specific reason for wanting to disable them.

Whether it’s to improve website performance, maintain a consistent design aesthetic, or for any other purpose, this guide will walk you through the process of disabling emoji icons in WordPress.

We’ll hook into init and eliminate the following actions :

  <?php
        function geekerhub_disable_wp_emojicons() {

        // all emoji-related activities
        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' );

        // TinyMCE emojis are removed using a filter.
        add_filter( 'tiny_mce_plugins','geekerhub_disable_emojicons_tinymce' );
        }
        add_action( 'init', 'geekerhub_disable_wp_emojicons' );
 ?>    

To deactivate TinyMCE emojis, we’ll need the following filter function:

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

Disable Emoji Icons is a plugin that allows you to disable emojis.  

Now we can take a deep breath and pretend this functionality was never introduced to the core… especially since there are still a lot of problems that need to be fixed.

Disable Emojis is a plugin that allows you to Disable Emoji.  

Alternatively, you may use Classic smilies to replace the smilies with the original ones from prior WordPress versions.

Update

We can also disable DNS prefetching by returning false on the emoji_svg_url filter.

add_filter( 'emoji_svg_url', '__return_false' );

4 thoughts on “How Do Disable Emoji Icons In WordPress”

  1. 说的不错,另外推荐一个获取WP破解插件和主题的网站:https://wpthems.com。现在网站上已经存有20000+的破解产品。

  2. Through the parental monitoring program, parents can pay attention to their children’s mobile phone activities and monitor WhatsApp messages more easily and conveniently. The application software runs silently in the background of the target device, recording conversation messages, emoticons, multimedia files, photos, and videos. It applies to every device running on Android and iOS systems.

Leave a Comment