comments_link_feed
Filters the comments permalink for the current post.
Usage
add_filter( 'comments_link_feed', 'wp_kama_comments_link_feed_filter' ); /** * Function for `comments_link_feed` filter-hook. * * @param string $comment_permalink The current comment permalink with '#comments' appended. * * @return string */ function wp_kama_comments_link_feed_filter( $comment_permalink ){ // filter... return $comment_permalink; }
- $comment_permalink(string)
- The current comment permalink with '#comments' appended.
Changelog
Since 3.6.0 | Introduced. |
Where the hook is called
comments_link_feed
wp-includes/feed.php 269
echo esc_url( apply_filters( 'comments_link_feed', get_comments_link() ) );