Last active
July 16, 2018 19:30
-
-
Save lukecav/43b6f4c9a0ceec4031b35aa0a34b8dc7 to your computer and use it in GitHub Desktop.
Removing Header Junk in WordPress
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_action('wp_head', 'rsd_link'); // remove really simple discovery | |
remove_action('wp_head', 'wp_generator'); // remove wordpress version | |
remove_action('wp_head', 'feed_links', 2); // remove rss feed links *** RSS *** | |
remove_action('wp_head', 'feed_links_extra', 3); // removes all rss feed links | |
remove_action('wp_head', 'index_rel_link'); // removes link to index (home) page | |
remove_action('wp_head', 'wlwmanifest_link'); // remove wlwmanifest.xml (windows live writer support) | |
remove_action('wp_head', 'start_post_rel_link', 10, 0); // remove random post link | |
remove_action('wp_head', 'parent_post_rel_link', 10, 0); // remove parent post link | |
remove_action('wp_head', 'adjacent_posts_rel_link', 10, 0); // remove the next and previous post links | |
remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 ); | |
remove_action('wp_head', 'wp_shortlink_wp_head', 10, 0 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment