post_comments_feed_link_html filter-hookWP 2.8.0

Filters the post comment feed link anchor tag.

Usage

add_filter( 'post_comments_feed_link_html', 'wp_kama_post_comments_feed_link_html_filter', 10, 3 );

/**
 * Function for `post_comments_feed_link_html` filter-hook.
 * 
 * @param string $link    The complete anchor tag for the comment feed link.
 * @param int    $post_id Post ID.
 * @param string $feed    The feed type. Possible values include 'rss2', 'atom', or an empty string for the default feed type.
 *
 * @return string
 */
function wp_kama_post_comments_feed_link_html_filter( $link, $post_id, $feed ){

	// filter...
	return $link;
}
$link(string)
The complete anchor tag for the comment feed link.
$post_id(int)
Post ID.
$feed(string)
The feed type. Possible values include 'rss2', 'atom', or an empty string for the default feed type.

Changelog

Since 2.8.0 Introduced.

Where the hook is called

post_comments_feed_link()
post_comments_feed_link_html
wp-includes/link-template.php 854
echo apply_filters( 'post_comments_feed_link_html', $link, $post_id, $feed );

Where the hook is used in WordPress

Usage not found.