Skip to content

Instantly share code, notes, and snippets.

@maxxscho
Created March 8, 2012 07:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxxscho/1999314 to your computer and use it in GitHub Desktop.
Save maxxscho/1999314 to your computer and use it in GitHub Desktop.
Wordpress: Remove unnecessary Headlinks
/* !-------- REMOVE UNNECESSARY HEADLINKS ------------------- */
/*------------------------------------------------------------ */
function bb_remove_headlinks() {
// remove simple discovery link
remove_action('wp_head', 'rsd_link');
// remove windows live writer link
remove_action('wp_head', 'wlwmanifest_link');
// remove the version number
remove_action('wp_head', 'wp_generator');
remove_action('wp_head', 'start_post_rel_link');
remove_action('wp_head', 'index_rel_link');
}
add_action( 'init', 'bb_remove_headlinks' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment