Skip to content

Instantly share code, notes, and snippets.

@neutraltone
Created June 7, 2017 08:42
Show Gist options
  • Save neutraltone/02c20d3c95f4ea5ec7162e5f3c80156b to your computer and use it in GitHub Desktop.
Save neutraltone/02c20d3c95f4ea5ec7162e5f3c80156b to your computer and use it in GitHub Desktop.
Clean up WordPress `<head>`
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wp_generator');
remove_action('wp_head', 'rel_canonical');
remove_action('wp_head', 'feed_links');
remove_action('wp_head', 'index_rel_link');
remove_action('wp_head', 'wlwmanifest_link');
remove_action('wp_head', 'feed_links_extra');
remove_action('wp_head', 'start_post_rel_link');
remove_action('wp_head', 'wp_shortlink_wp_head');
remove_action('wp_head', 'parent_post_rel_link');
remove_action('wp_head', 'rest_output_link_wp_head');
remove_action('wp_head', 'adjacent_posts_rel_link');
remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles' );
remove_action('wp_head', 'wp_oembed_add_discovery_links');
remove_action('wp_head', 'adjacent_posts_rel_link_wp_head');
remove_action('wp_head', 'wp_resource_hints', 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment