June 2026 promo! Join our Discord free of charge.

Slick­Stack
Lightning-fast WordPress on Nginx

how to disable some or all of RSS feeds in WordPress website?

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #25658
    Marie
    Guest

    I have seen on wp.org some ideas, but it seems incomplete, to disable 100% of feeds on the WP site, or, all feeds except homepage (etc).

    #25659
    Matthew
    Guest
    #25660
    Christopher
    Guest

    Well that thread actually has one good feedback, do not use wp_die for this function 🙂

    should use something less risky

    #25661
    Diane
    Guest

    One of the big confusions is that it requires 2 different functions:

    1. disable the feeds you want so they don’t feed content
    2. remove the feed links from the header (source code)

    These are different things, and most solutions you find on Google will only solve one of these and not the other. And sometimes, incompletely.

    #25662
    Logan
    Guest

    Try this to remove RSS links in head:

    https://ronangelo.com/disable-feeds-on-wordpress-or-bbpress/

    function ra_remove_feed_links() {
    	remove_theme_support( 'automatic-feed-links' );
    	remove_action( 'wp_head', 'feed_links_extra', 3 );
    }
    add_action( 'after_setup_theme', 'ra_remove_feed_links', 99 );

    To disable/stop RSS feeds you need more code. But I don’t suggest using his method from 2013 because it is also wp_die

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: how to disable some or all of RSS feeds in WordPress website?

Thanks to our generous sponsors for their support!