How to Disable RSS Feed on WordPress Website

| Last Updated: | In: Code Snippets, WordPress Snippets


Someone has asked me a question “How to Disable RSS Feed on WordPress website” so that anyone can’t see the RSS feed of the site. Instead of RSS feed, he wants to display the custom message “No feed available, please visit the "http://www.domain-name.com".

How to Disable RSS Feed on WordPress Website

Open your functions.php file from current activated theme’s folders and copy paste below code at the end of the file.

Hope this tutorial helped you, do you like & share this article with your friends, and don’t forget to follow us on Facebook and Twitter to learn cool WordPress tutorials.


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


You may also like:

Tags: , , , , , , , ,