Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save paulvanbuuren/2afebf8607452adcc1d416809e4029b0 to your computer and use it in GitHub Desktop.
Save paulvanbuuren/2afebf8607452adcc1d416809e4029b0 to your computer and use it in GitHub Desktop.
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