Themes } add_action( 'admin_menu', __NAMESPACE__ . '\hide_pages_from_admin_menu', 40 ); // Disable wp-emoji compat script remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); // Do not load unnecessary styles and scripts during embed. remove_action( 'embed_head', 'print_emoji_detection_script' ); remove_action( 'embed_head', 'wp_print_head_scripts', 20 ); remove_action( 'embed_footer', 'wp_print_footer_scripts', 20 );