I moved my WP site to a new host and now there are no Twemojis
I moved my WP site to a new host and now there are no Twemojis
I moved my WP site to a new host and now there are no Twemojis
The WP core reference lists the hooks and functions related to emoji. Here are the hooks you use to point to alternate versions of emoji.
Emojicons introduced with WP 4.2 code not inline
To have your emoji characters displayed correctly, your html document MUST HAVE this meta in the header: <meta charset=”UTF-8″> To insert emoji character into your content, you can ether copy/paste it, or use its numerical code. This will be a code for a hamburger: 🍔 resulting this: 🍔. Update It looks like your wp_posts table’s … Read more
Copying my answer to a similar question from the .org forums: You can’t force WordPress to use iOS emoji for anyone but iOS (or Mac) users. Emoji are just characters, like any other letter, and how they’re displayed is determined by the operating system. Each operating system has its own graphics for the emoji, and … Read more
You’ll need to adjust your hook so it runs on wp, not init so that you can query what page you’re currently on. The code below gives you some examples of determining if you’re on the page(s) in questions. function disable_emoji_feature() { if ( is_page( 123 ) || is_page(‘the-page-slug’ ) || is_page( array( 1, 2, … Read more
I’m answering this old question because I didn’t find anything better. WordPress 5.9 wp-admin\options.php line 165 checks database version (when WP was originally installed) against a number to show or not those options. if ( get_site_option( ‘initial_db_version’ ) < 32453 ) { $allowed_options[‘writing’][] = ‘use_smilies’; $allowed_options[‘writing’][] = ‘use_balanceTags’; } Not actually a solution, but maybe … Read more
The code from this page solved the problem for me. /** * Disable the emoji’s */ function disable_emojis() { 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_action( ‘admin_print_styles’, ‘print_emoji_styles’ ); remove_filter( ‘the_content_feed’, ‘wp_staticize_emoji’ ); remove_filter( ‘comment_text_rss’, ‘wp_staticize_emoji’ ); remove_filter( ‘wp_mail’, ‘wp_staticize_emoji_for_email’ ); add_filter( ‘tiny_mce_plugins’, ‘disable_emojis_tinymce’ ); add_filter( ‘wp_resource_hints’, ‘disable_emojis_remove_dns_prefetch’, … Read more
As noted on the codex, the option was removed in 4.3 As of WordPress 4.3, the option to disable graphic smileys was removed from new installs. There is a plugin if you want to retain the option.
To completely remove emojis this is the code: 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_action( ‘admin_print_styles’, ‘print_emoji_styles’ ); So to check if any of those are active you could use has_action() like this: $emoji_script front = has_action( ‘wp_head’, ‘print_emoji_detection_script’ ); if( $emoji_script_front ) { // The emoji script … Read more