
Simple way to disable RSS Feeds is to add below to functions.php file.
add_action( 'do_feed', 'aioo_crunchify_perf_disable_feed', 1 ); add_action( 'do_feed_rdf', 'aioo_crunchify_perf_disable_feed', 1 ); add_action( 'do_feed_rss', 'aioo_crunchify_perf_disable_feed', 1 ); add_action( 'do_feed_rss2', 'aioo_crunchify_perf_disable_feed', 1 ); add_action( 'do_feed_atom', 'aioo_crunchify_perf_disable_feed', 1 ); add_action( 'do_feed_rss2_comments', 'aioo_crunchify_perf_disable_feed', 1 ); add_action( 'do_feed_atom_comments', 'aioo_crunchify_perf_disable_feed', 1 );
Simple way to disable RSS feed links:
add_action( 'feed_links_show_posts_feed', '__return_false', - 1 ); add_action( 'feed_links_show_comments_feed', '__return_false', - 1 ); remove_action( 'wp_head', 'feed_links', 2 ); remove_action( 'wp_head', 'feed_links_extra', 3 );
Is there any other way to disable RSS Feeds and RSS Feed Links using Plugin?
Yes.
- Download plugin Crunchy Optimizer.
- Enable toggle: Disable RSS Feeds.
- Enable toggle: Disable RSS Feed Links

That’s it. And you are all set.

Crunchy Optimizer – No recurring charge
No monthly or Yearly Payment – just one time purchase. We believe in the best product quality.
Simplest, most powerful, super light weight All-in-One WordPress plugin for all! 50+ Optimization, Customization & Webmaster Options in one single plugin. 🥳