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');

About Rick

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

Leave a Reply

Add <code> Some Code </code> by using this tags.

*
*