Created
October 19, 2015 13:25
-
-
Save Mason8r/04e2b592704c97facd2a to your computer and use it in GitHub Desktop.
Wordpress will include a lot of stuff in the header and footer that's just not required. Especially stuff for comments when this theme doesn't support them. This kills them dead.
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
/** | |
* | |
* Wordpress will include a lot of stuff in the header and footer | |
* that's just not required. Especially stuff for comments when | |
* this theme doesn't support them. The below kills them dead. | |
* | |
* | |
**/ | |
remove_action('wp_head', 'print_emoji_detection_script', 7 ); | |
remove_action('wp_print_styles', 'print_emoji_styles' ); | |
remove_action('wp_head', 'rsd_link'); | |
remove_action('wp_head', 'feed_links_extra', 3 ); | |
remove_action('wp_head', 'wlwmanifest_link'); | |
remove_action('wp_head', 'wp_shortlink_wp_head'); | |
remove_action('wp_head', 'wp_generator'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment