Skip to content

Instantly share code, notes, and snippets.

@raulghm
Created August 12, 2014 15:23
Show Gist options
  • Save raulghm/50c6769ecc74cb1ffbe2 to your computer and use it in GitHub Desktop.
Save raulghm/50c6769ecc74cb1ffbe2 to your computer and use it in GitHub Desktop.
[Wordpress] Remove extra head tags
// Remove extra head tags
remove_action( 'wp_head', 'feed_links_extra', 3 ); //Extra feeds such as category feeds
remove_action( 'wp_head', 'feed_links', 2 ); // General feeds: Post and Comment Feed
remove_action ('wp_head', 'rsd_link');
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