Easy way to remove emoji script and style in wordpress theme header or wp-admin header without plugin, simple way, just 4 lines.

Remove Emoji Script

We will remove emoji script from wp_head() action and remove emoji style from wp_print_styles() action in your wordpress theme, and we will remove emoji style and script from admin_print_scripts() action and admin_print_styles() action in your wp-admin, we will do that using remove_action() function.

Usage

Copy code and paste it in functions.php file in your wordpress theme.

Theme Header

Remove emoji style and script from your theme header:

remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');

Admin Header

Remove emoji style and script from wp-admin header:

remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );