Do you want to disable RSS feeds from your WordPress website so users can’t access it and search engine too? Then you came at the right place.
Here we have posted the code and it guides that will help you to easily disable RSS feeds completely. Just follow the below instruction.
Tested on WordPress 4.7 and it also working on old version 3.0
Read also: Display a Custom Gravatar for Your Comments
Let’s not waste the time and get to the point.
Function to Disable RSS Feeds in WordPress
You can disable RSS feeds If you want to maintain your WordPress based website as static. Just copy the below code and paste it into your WordPress theme’s functions.php file.
After that, visit your website URL as like http://yoursite.com/feed/ to check whether RSS feed disabled or not.
Code to Disable RSS Feed
That’s it.
If you guys have any question or opinion of the post, let us know in comment section. Do also share this article.