[How To] Disable feed URLs in WordPress

WordPress automatically generates RSS feed links on your page header. To disable automatic feed urls on your site header, you can use the following snippet. Copy the following code into your functions.php file to remove the header rss feed links;

remove_action( 'wp_head', 'feed_links_extra', 3 );
remove_action( 'wp_head', 'feed_links', 2 );

Leave a Reply

Your email address will not be published. Required fields are marked *