Disable the WordPress emoji functionality to improve performance and privacy.
★ 5/5 stars (108 ratings · 99% 5-star) · 60,000+ active sites · 1.1M+ total downloads — as of May 2026
The plugin uses:
- Zero runtime dependencies — the plugin has no third-party runtime dependencies.
├── .github/workflows/ci.yml # GitHub Actions CI
├── bin/generate-readme.php # README generator
├── composer.json
├── disable-emojis.php # Plugin entry point
├── phpcs.xml.dist # PHP_CodeSniffer configuration
├── phpstan.neon # PHPStan configuration
├── readme.txt # WordPress.org plugin readme
├── README.md
├── src/
│ └── EmojiModule.php # Core emoji disabling logic
└── tests/
├── EmojiModuleTest.php # Unit tests
└── bootstrap.php # WordPress function stubs
- Upload the
disable-emojisfolder to/wp-content/plugins/, or install via the WordPress plugin installer - Activate the plugin through the Plugins screen in WordPress
- Done! Emoji bloat is automatically removed.
Visit the Disable Emojis plugin page for more information.
No. Modern browsers have built-in emoji support. This plugin only removes the JavaScript and CSS that WordPress adds for very old browsers.
Yes. Text-based emoticons like :) and :D will continue to work as they always have.
It does not connect to any external servers or send any data. It removes the DNS prefetch to WordPress.org's emoji CDN. See the GDPR section above for details.
| Tool | Command | Purpose |
|---|---|---|
| PHP_CodeSniffer | composer phpcs |
Sniffs for PSR-12 violations |
| PHP_CodeSniffer | composer phpcbf |
Auto-fixes PSR-12 violations |
| PHP-CS-Fixer | composer cs |
Dry-run style check |
| PHP-CS-Fixer | composer cs:fix |
Auto-fixes style issues |
| PHPStan | composer phpstan |
Static analysis at level 6 |
All code uses declare(strict_types=1) and follows PSR-12.
-
Clone the repository
-
Run
composer install -
Make your changes in
src/ -
Run the quality tooling:
composer phpcs composer phpstan
-
Submit a pull request
This plugin disables the WordPress emoji functionality, removing unnecessary code bloat that adds support for emojis in older browsers.
- Removes the emoji detection script from
wp_headand the admin - Removes emoji styles from
wp_print_stylesand admin - Removes emoji DNS prefetching, preventing connections to
s.w.org - Removes the
wpemojiTinyMCE plugin - Strips emoji CDN hostname from DNS prefetch hints
Emojis will still display in modern browsers that have built-in support. This plugin simply removes the extra HTTP requests and JavaScript overhead for browsers that don't need it. Additionally, it prevents DNS prefetching to WordPress.org's emoji CDN, improving privacy.
Note: Emoticons like :) will continue to work as expected.
- PHP 7.4+
- WordPress 5.0+
This plugin does not send any data to external servers. It disables DNS prefetching of emojis within WordPress, which should ensure improved privacy. To determine if your site is GDPR compliant, please seek legal advice. I have done my best to ensure the plugin is 100% GDPR compliant, but I am not a lawyer so cannot guarantee anything.
- Documentation change — removed references to Modularity and PSR-4 autoloading
- Removed Composer autoloader — plugin loads via require_once instead of the vendor/autoload.php
- Name spacing the PSR implementation to prevent plugin clashes
- Refactor for modern PHP standards
- Confirmed support for newer WordPress versions.
- Confirmed support for newer WordPress versions.
- Confirmed support for newer WordPress versions.
- Added Composer support.
- Fixing typos.
- Version bump.
- Subtle improvement to code cleanliness.
- Improved documentation regarding GDPR issues.
- Added GDPR friendly label.
- Removed DNS prefetch URL again.
- Using simple string check rather than relying on internal WordPress filters.
- Removed DNS prefetch URL. Props to Aaron Queen.
- Catering to new DNS prefetch URL in version 4.7 of core.
- Improved documentation.
- Removed redundant DNS prefetching.
- Updating documentation.
- Catering for invalid plugin array.
- Updating to use Otto's code.
- Removing extraneous styles.
- Bug fix.
- Updating to work with latest beta.
- Initial release.