Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to remove the WordPress emoji cruft
/* THX: https://www.denisbouquet.com/remove-wordpress-emoji-code/ */
//========================================================================================================
// In functions.php (your WordPress theme)
// Add the following lines
// REMOVE WP EMOJI
remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );
//========================================================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.