post_comments_feed_link_html
Filters the post comment feed link anchor tag.
Использование
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(строка)
- The complete anchor tag for the comment feed link.
- $post_id(int)
- Post ID.
- $feed(строка)
- The feed type. Possible values include 'rss2', 'atom', or an empty string for the default feed type.
Список изменений
| С версии 2.8.0 | Введена. |
Где вызывается хук
post_comments_feed_link_html
wp-includes/link-template.php 854
echo apply_filters( 'post_comments_feed_link_html', $link, $post_id, $feed );