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
This is the mu-plugin to remove the RSD Link from your WordPress header:
<?php
/*
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');