How to Remove RSS Feed in wp_head WordPress

WordPress adds automatically the RSS feed posts links with the wp_head function.

Code

Paste this lines in your functions.php file of your theme.

function remove_comments_rss( $for_comments ) {
    return;
}
add_filter('post_comments_feed_link','remove_comments_rss');Code language: PHP (php)

Leave a Reply

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