// Remove Emoji Garbage from Header 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' ); // Google Tag Manager function add_gtm_to_head() { $google_head_script = << EOD; echo $google_head_script; } add_action('wp_head', 'add_gtm_to_head'); function add_gtm_to_body( $classes ) { $block = << EOD; $classes[] = '">' . $block . '