Skip to content

Instantly share code, notes, and snippets.

@jasonbraun
Last active April 11, 2017 19:33
Show Gist options
  • Save jasonbraun/23e918183d2cf8be3cf27b02760de793 to your computer and use it in GitHub Desktop.
Save jasonbraun/23e918183d2cf8be3cf27b02760de793 to your computer and use it in GitHub Desktop.
Remove items from The WP Head section
<?php
//* Remove items from the <head> section
remove_action( 'wp_head', 'wp_generator' ); //* Remove WP Version number
remove_action( 'wp_head', 'wlwmanifest_link' ); //* Remove wlwmanifest_link
remove_action( 'wp_head', 'rsd_link' ); //* Remove rsd_link
remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 ); //* Remove shortlink
remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 ); //* Remove previous/next post links
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment