Where to remove from comment’s feed?

Things added by WordPress core can not be deleted or removed, or better said, shouldn’t be modified directly. Instead, you can use any of the actions and filters.

Specifically, to disable comments feeds, you can use this (note the priority parameter):

remove_action( 'wp_head', 'feed_links', 2 );

The above code will remove also other posts feed link, there is no specific action for comments links. So, if you want to add other feed links you need to add them manually, for example:

add_action( 'wp_head', function() {

    echo '<link rel="alternate" type="application/rss+xml" title="RSS 2.0 Feed" href="'.get_bloginfo('rss2_url').'" />';

} );

Also, you must know that automatic feed links in <head> is a theme feature, so, if you want to remove them you can also look for and remove this line in your theme functios.php:

add_theme_support( 'automatic-feed-links');

If none of these code snippets work, look for hard coded feed links in your theme, for example in header.php. If you find that links hardcoded in a template, you can complaint to the theme developer; that links shouldn’t be there.

UPDATE

Since WordPress 4.4.0 you can use feed_links_show_comments_feed filter to specifically remove comments feed link:

add_filter( 'feed_links_show_comments_feed', '__return_false' );

Leave a Comment

deneme bonusu veren sitelerbahis casinomakrobetceltabetpinbahispolobetpolobet girişpinbahis girişmakrobet girişpulibet girişmobilbahis girişkolaybet giriş