{"id":1822,"date":"2024-12-17T10:47:10","date_gmt":"2024-12-17T09:47:10","guid":{"rendered":"https:\/\/wpmastertoolkit.com\/module\/desactiver-la-prise-en-charge-des-emoji\/"},"modified":"2025-01-02T16:47:37","modified_gmt":"2025-01-02T15:47:37","slug":"desactiver-la-prise-en-charge-des-emoji","status":"publish","type":"module","link":"https:\/\/wpmastertoolkit.com\/en\/module\/disable-emoji-support\/","title":{"rendered":"Disable emoji support"},"content":{"rendered":"<h1 class=\"wp-block-heading\">Disable Emojis in WordPress with WPMasterToolKit<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Since WordPress 4.2, emojis (those little smileys and visual icons) are natively supported by the CMS. However, this feature isn't always useful for all sites. Worse still, it can add unnecessary scripts and make page loading slightly heavier, which can impact performance. It's precisely to solve this problem that we've developed the <strong>Disable Emoji Support<\/strong> in WPMasterToolKit. This module completely disables emoji support on your WordPress site, optimizing its performance.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Which plugin can this module replace?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The module <strong>Disable Emoji Support<\/strong> can replace specific plugins designed to disable emojis, such as :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Disable Emojis (GDPR friendly)<\/strong><\/li>\n\n\n\n<li><strong>Remove Emoji CSS and JS<\/strong><br>With this module from WPMasterToolKit, you benefit from a native, lightweight solution, with no need to install an additional plugin.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Why disable emojis on WordPress?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">While emojis are fun and useful for certain types of site (such as personal blogs or social media-oriented sites), they're rarely essential for professional or corporate sites. Plus:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Performance enhancement<\/strong> Emoji scripts and styles are loaded on every page, even when not in use.<\/li>\n\n\n\n<li><strong>RGPD Compliance<\/strong> emojis sometimes use external resources (for example, the <code data-no-auto-translation=\"\">s.w.org<\/code>), which can pose problems for privacy-conscious sites.<\/li>\n\n\n\n<li><strong>Reduce unnecessary requests<\/strong> : By disabling emojis, you limit HTTP requests, contributing to a faster site.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">How the Disable Emoji Support module works<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The module <strong>Disable Emoji Support<\/strong> has been designed to be minimalist and efficient. Once activated, it disables all emoji-related aspects in WordPress. Here are the main actions performed by this module:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Removing emoji scripts and styles<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>In the front-end<\/strong> : WordPress added emoji scripts and styles are removed via hooks <code data-no-auto-translation=\"\">wp_head<\/code>, <code data-no-auto-translation=\"\">embed_head<\/code>and <code data-no-auto-translation=\"\">wp_print_styles<\/code>.<\/li>\n\n\n\n<li><strong>In administration (wp-admin)<\/strong> Scripts and styles linked to emojis are also disabled in the dashboard with hooks. <code data-no-auto-translation=\"\">admin_print_scripts<\/code> and <code data-no-auto-translation=\"\">admin_print_styles<\/code>.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Deactivating emoji features<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Filters that add emojis to RSS feeds or emails (e.g. <code data-no-auto-translation=\"\">the_content_feed<\/code>, <code data-no-auto-translation=\"\">wp_mail<\/code>) are deleted.<\/li>\n\n\n\n<li>The filter <code data-no-auto-translation=\"\">emoji_svg_url<\/code>which provides the path to SVG emojis, is disabled by returning <code data-no-auto-translation=\"\">false<\/code>.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Removing emojis from the TinyMCE editor<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In the visual editor (TinyMCE), the module removes the emoji plugin with the filter <code data-no-auto-translation=\"\">tiny_mce_plugins<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">No more DNS queries for emojis<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The module deletes preloaded DNS queries (<code data-no-auto-translation=\"\">dns-prefetch<\/code>) related to the emoji domain, thus avoiding unnecessary requests to <code data-no-auto-translation=\"\">s.w.org<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Deactivating smileys<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If your site uses \"smileys\" (such as <code data-no-auto-translation=\"\">:-)<\/code>), these will also be disabled, as WordPress automatically converts them to emojis.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to use this module<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Using the <strong>Disable Emoji Support<\/strong> is disconcertingly simple.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Install and activate the WPMasterToolKit plugin on your WordPress site.<\/li>\n\n\n\n<li>Activate the \"Disable Emoji Support\" module from the WPMasterToolKit dashboard. That's all there is to it! Once activated, emojis will be disabled throughout your site.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Our technical choices for this module<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We've adopted a simple, optimized approach to ensure complete emoji deactivation. Here are some key technical choices:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Modular approach<\/strong> : The module is only loaded if you activate it, in line with the \"one module activated = one module loaded\" philosophy.<\/li>\n\n\n\n<li><strong>Using native hooks<\/strong> : We used hooks <code data-no-auto-translation=\"\">remove_action<\/code> and <code data-no-auto-translation=\"\">remove_filter<\/code> to disable native WordPress emoji functionality. This avoids direct modification of the WordPress core and guarantees compatibility with future updates.<\/li>\n\n\n\n<li><strong>Targeted filtering<\/strong> Changes are applied only to specific emoji features, minimizing any impact on other parts of the site.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The module <strong>Disable Emoji Support<\/strong> from WPMasterToolKit is a perfect solution for WordPress site administrators who want to lighten their site and improve its performance. Whether it's for speed, privacy or simply because you don't need emojis, this module is a simple and effective option. Try it today and enjoy a faster, cleaner site!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>","protected":false},"excerpt":{"rendered":"<p>Easily disable emoji support on your WordPress site with WPMasterToolKit's Disable Emoji Support module. By removing unnecessary emoji scripts, styles and features, this module improves your site's performance while reducing external requests, perfect for optimizing speed and respecting your visitors' privacy. A lightweight, efficient solution, ideal for professional or minimalist sites.<\/p>","protected":false},"featured_media":0,"parent":0,"template":"","meta":{"_acf_changed":true,"_seopress_titles_title":"Optimisez WordPress : D\u00e9sactivez les emojis facilement","_seopress_titles_desc":"Am\u00e9liorez la performance de votre site WordPress avec WPMasterToolKit en d\u00e9sactivant les emojis inutiles. Solution simple et l\u00e9g\u00e8re!","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"both","_seopress_redirections_param":"","_seopress_redirections_type":301,"_seopress_analysis_target_kw":"","_seopress_news_disabled":"","_seopress_video_disabled":"","_seopress_video":[],"_seopress_pro_schemas_manual":[],"_seopress_pro_rich_snippets_disable_all":"","_seopress_pro_rich_snippets_disable":[],"_seopress_pro_schemas":[],"_surecart_dashboard_logo_width":"180px","_surecart_dashboard_show_logo":true,"_surecart_dashboard_navigation_orders":true,"_surecart_dashboard_navigation_invoices":true,"_surecart_dashboard_navigation_subscriptions":true,"_surecart_dashboard_navigation_downloads":true,"_surecart_dashboard_navigation_billing":true,"_surecart_dashboard_navigation_account":true},"class_list":["post-1822","module","type-module","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module\/1822","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module"}],"about":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/types\/module"}],"wp:attachment":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/media?parent=1822"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}