How to Remove RSD Link from your Header in WordPress

Published on September 24, 2022 | Updated on July 8, 2024

The RSD (Really Simple Discovery) link in WordPress is used to enable automatic detection of blogging and publishing APIs, making it easier for external applications to communicate with your WordPress site.

This link is added to the HTML header of your WordPress site and points to an XML file that describes the available APIs.

While the RSD link can be useful for enabling third-party services and applications to interact with your WordPress site, you may choose to remove it if you don’t use such services, as part of optimizing your site or for security reasons.

Code Snippet to Remove RSD Link

Removing the RSD (Really Simple Discovery) link from your WordPress site’s header can be done by adding a small snippet of code.

remove_action('wp_head', 'rsd_link');

You can add that plugin using one of these three methods:

  • Code Snippets Plugins
  • Functions PHP File
  • Mu-Plugin

In case you want to use a mu-plugin, here I am sharing all you need to know to create mu-plugins

What are Mu-Plugins?

What are Mu-Plugins?

MU-plugins, or "Must Use" plugins, are a feature of WordPress that allows certain plugins to be automatically activated without requiring manual activation.

This is the mu-plugin to remove the RSD Link from your WordPress header:

Plugin Name: Remove RSD Link
Description: A simple MU plugin to remove the RSD link from the WordPress header.
Author: TicoLibre
Version: 1.0

remove_action('wp_head', 'rsd_link');

Manuel Campos

Manuel Campos

I am José Manuel. I am writing about things I know and things that I am learning about WordPress. I hope you find the content of this blog useful.






© 2024 WP SURFER • Made with Love in Costa Rica