Posts Tagged ‘plugin’

Remove WordPress rsd_link(), wlwmanifest_link(), wp_generator()

Wednesday, November 7th, 2007

By default, WordPress default filters adds rsd_link() and wlwmanifest_link() which outputs the following lines within the <head></head> section of your theme template file:

<head>
...
<link rel="EditURI" type="application/rsd xml" title="RSD"
 href="http://safirulalredha.com/xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest xml"
href="http://safirulalredha.com/wp-includes/wlwmanifest.xml" />
...
</head>

You can remove clutter of unused rsd_link() (Really Simple Discovery) or wlwmanifest_link() (Windows Live Writer) by adding the following to your theme functions.php:

remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wlwmanifest_link');

Remove rsd_link() and / or wlwmanifest_link() WordPress plugin

Optionally, you can download remove rsd_link() and / or wlwmanifest_link() WordPress plugin. To install, please read WordPress Plugin Installation or simply extract the zip files to your wp-content/plugins folder and activate.

wp_generator()

In case that you’re using the latest bleeding edge version of WordPress, in revision 6195 WordPress introduced a new default filter that hooks a generator tag to wp_head() which outputs:

<meta name="generator" content="WordPress/..." />

Besides the <head></head> section of your theme template file, it also creates the generator XML or Comment for RSS, ATOM and etc.

To remove the generator tag, just add remove_action('wp_head', 'wp_generator'); to your theme functions.php.