How to Disable both category and tag feeds without WordPress plugin?

Add the following code in your theme’s functions.php file or site-specific WordPress plugin also known as WordPress custom functions plugin.

It is highly recommended to create a child theme and add custom codes in the child theme’s functions.php file, so you will never lose your changes when you update your theme.

    function disable_category_tag_feed () {
    return;
    }
    add_filter('category_feed_link', 'disable_category_tag_feed');

Source: lostsaloon

Related Tutorials:

Advertisements

You May Also Like

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.