Skip to content

Instantly share code, notes, and snippets.

@walterebert
Created October 27, 2015 07:55
Show Gist options
  • Save walterebert/7602487dcfa2daa82f58 to your computer and use it in GitHub Desktop.
Save walterebert/7602487dcfa2daa82f58 to your computer and use it in GitHub Desktop.
WordPress snippet: Clean wp_head
<?php
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', 'adjacent_posts_rel_link' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment