
內容簡介
這個外掛可以禁用 WordPress 的新表情符號功能,符合 GDPR。
注意:表情符號仍將正常工作,而內建支援表情符號的瀏覽器中,表情符號也將正常顯示。這個外掛只是移除了在較舊的瀏覽器中支援表情符號的冗餘代碼。
GDPR 合規性
這個外掛不會使您的網站不符合 GDPR 規定。它禁用了 WordPress 內的表情符號 DNS 預取功能,進一步確保了隱私。若要確認您的網站是否符合 GDPR 規定,請諮詢法律專家。我已盡力確保這個外掛是 100% 符合 GDPR 規定的,但我並非律師,因此無法做任何保證 😉
外掛標籤
開發者團隊
② 後台搜尋「Disable Emojis (GDPR friendly)」→ 直接安裝(推薦)
原文外掛簡介
This plugin disables the WordPress emoji functionality, removing unnecessary code bloat that adds support for emojis in older browsers.
What it does
Removes the emoji detection script from wp_head and the admin
Removes emoji styles from wp_print_styles and admin
Removes emoji DNS prefetching, preventing connections to s.w.org
Removes the wpemoji TinyMCE plugin
Strips emoji CDN hostname from DNS prefetch hints
Performance & Privacy
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.
Requirements
PHP 7.4+
WordPress 5.0+
GDPR compliancy
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.
Architecture
The plugin uses:
PSR-4 autoloading — classes in src/ are autoloaded via Composer under the RyanHellyer\DisableEmojis namespace.
Inpsyde Modularity — the plugin is structured as a module implementing ExecutableModule, bootstrapped via the library’s Package class.
Quality
All code uses declare(strict_types=1) and follows PSR-12. The plugin runs the following tooling:
PHP_CodeSniffer (run via composer phpcs) — sniffs for PSR-12 violations
PHP-CS-Fixer (run via composer cs) — dry-run style check
PHPStan at level 6 (run via composer phpstan) — static analysis
