Skip to content

Instantly share code, notes, and snippets.

@juancarloscruzd
Created December 20, 2015 02:29
Show Gist options
  • Save juancarloscruzd/babce63d94716483a268 to your computer and use it in GitHub Desktop.
Save juancarloscruzd/babce63d94716483a268 to your computer and use it in GitHub Desktop.
Remove unnecessary tags that Wordpress insert in header
<?php
remove_action( 'wp_head', 'wp_generator' );
remove_action( 'wp_head', 'rsd_link' );
remove_action( 'wp_head', 'wlwmanifest_link' );
remove_action( 'wp_head', 'start_post_rel_link' );
remove_action( 'wp_head', 'index_rel_link' );
remove_action( 'wp_head', 'wp_shortlink_wp_head' );
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