Clean Up WordPress Head To Speed Up Your Website – Nietzsche Head Cleaner

The Nietzsche Head Cleaner automatically removes unnecessary links, files, metadata, and codes from the head section of your WordPress to speed up your website.


  • Removes WordPress version.
  • Removes shortlink.
  • Removes Really Simple Discovery link.
  • Removes RSS feed links.
  • Removes all extra RSS feed links.
  • Removes wlwmanifest.xml.
  • Removes meta rel=dns-prefetch href=//
  • Removes relational links for the posts.
  • Removes Emoji icons.
  • Removes WordPress REST API.
  • Removes oEmbed.
  • Removes oEmbeds.

How to use it:

1. Login to the admin panel and search for the plugin name Nietzsche – WP Head Cleaner on the Add Plugins page.

2. Or download the plugin and upload the zip to the WordPress.

3. Install and activate the plugin and done.

4. The code functions.

remove_action( 'wp_head', 'wp_generator' ); // Removes WordPress version.
remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 ); // Removes shortlink.
remove_action( 'wp_head', 'rsd_link' ); // Removes Really Simple Discovery link.
remove_action( 'wp_head', 'feed_links', 2 ); // Removes RSS feed links.
remove_action( 'wp_head', 'feed_links_extra', 3 ); // Removes all extra RSS feed links.
remove_action( 'wp_head', 'wlwmanifest_link' ); // Removes wlwmanifest.xml.
remove_action( 'wp_head', 'wp_resource_hints', 2 ); // Removes meta rel=dns-prefetch href=//
remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 ); // Removes relational links for the posts.
// Removes Emoji icons.
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
// Removes WordPress REST API.
remove_action( 'wp_head', 'rest_output_link_wp_head', 10 );
remove_action( 'template_redirect', 'rest_output_link_header', 11, 0 );
// Removes oEmbed.
remove_action( 'wp_head', 'wp_oembed_add_discovery_links', 10 );
// Removes oEmbeds.
remove_action( 'wp_head', 'wp_oembed_add_discovery_links', 10 );

Download WordPress Plugin:

You can download this free WordPress plugin using the download button below. Unless otherwise stated, the WordPress plugin is available under GNU General Public License.

Author: Dead Writers Society


Don’t forget to share this WordPress plugin and also check out other awesome plugins on our site.

Rate This Plugin
User Review
0 (0 votes)