Skip to content

Instantly share code, notes, and snippets.

@Steven-Rose
Created February 3, 2012 07:26
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 Steven-Rose/1728753 to your computer and use it in GitHub Desktop.
Save Steven-Rose/1728753 to your computer and use it in GitHub Desktop.
WP: Remove header info (potential for SEO path issues)
remove_action( 'wp_head', 'feed_links_extra', 3 ); // Display the links to the extra feeds such as category feeds
remove_action( 'wp_head', 'feed_links', 2 ); // Display the links to the general feeds: Post and Comment Feedremove_action( 'wp_head', 'start_post_rel_link'); // Removes the start link
remove_action( 'wp_head', 'start_post_rel_link'); // Removes the start link
remove_action( 'wp_head', 'wp_shortlink_wp_head' ); // Removes shortlink reference
remove_action( 'wp_head', 'wp_generator' ); // Display the XHTML generator that is generated on the wp_head hook, WP version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment