Remove remote-access and pingback functionality header links

I was reading the post by @zigpress about removing unnecessary emoji code and have implemented that procedure on all my sites. But in looking at my source code, I can see there are also calls to include remote-access and pingback functionality in these lines:

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

Should these also be removed if they are never used? I have found it can be easily done with this code:

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

Is this worth doing?

3 Likes

Yes, I usually add that code to remove those links. I didn’t include this in my emoji-related post because it’s not related (though equally redundant in most situations).

4 Likes

Excellent, thanks. :+1: Will add this into my utility plugin.

It’s great having a utility plugin on all my sites as it makes pushing through these changes so much easier.

Understand why you didn’t include it in the emoji discussion but if you have any other “cleaning up” tips like this, I’d be keen to hear about them.

2 Likes

Here’s a resource for cleaning up the head section.

2 Likes

I’ve just been looking at that. Great work! :clap:

1 Like