Skip to content

Instantly share code, notes, and snippets.

@morganestes
Last active December 11, 2015 21:18
Show Gist options
  • Select an option

  • Save morganestes/4661031 to your computer and use it in GitHub Desktop.

Select an option

Save morganestes/4661031 to your computer and use it in GitHub Desktop.
Remove extra stuff from WordPress head.
<?php
/**
* Strip generator and feeds.
* @link http://www.themelab.com/2010/07/11/remove-code-wordpress-header/
*/
remove_action( 'wp_head', 'rsd_link' );
remove_action( 'wp_head', 'wlwmanifest_link' );
remove_action( 'wp_head', 'wp_generator' );
remove_action( 'wp_head', 'start_post_rel_link' );
remove_action( 'wp_head', 'index_rel_link' );
remove_action( 'wp_head', 'adjacent_posts_rel_link' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment