Remove WordPress emoji code in your pages head without plugin

WordPress has added a cluster of code in the headers for Emoji support. To remove it from the source code, add the following code to your functions.php file.

// 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' );