comments_link_feed
Filters the comments permalink for the current post.
Использование
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(строка)
- The current comment permalink with '#comments' appended.
Список изменений
С версии 3.6.0 | Введена. |
Где вызывается хук
comments_link_feed
wp-includes/feed.php 267
echo esc_url( apply_filters( 'comments_link_feed', get_comments_link() ) );