Created
January 18, 2022 10:46
-
-
Save yxod/4b57120996719fd1ab1ebe796dc531d4 to your computer and use it in GitHub Desktop.
clear wp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//remove emoji support | |
remove_action('wp_head', 'print_emoji_detection_script', 7); | |
remove_action('wp_print_styles', 'print_emoji_styles'); | |
// Remove rss feed links | |
remove_action( 'wp_head', 'feed_links_extra', 3 ); | |
remove_action( 'wp_head', 'feed_links', 2 ); | |
// remove wp-embed | |
add_action( 'wp_footer', function(){ | |
wp_dequeue_script( 'wp-embed' ); | |
}); | |
add_action( 'wp_enqueue_scripts', function(){ | |
// remove block library css | |
wp_dequeue_style( 'wp-block-library' ); | |
// remove comment reply JS | |
wp_dequeue_script( 'comment-reply' ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment