get_comments_link

过滤钩子


apply_filters( 'get_comments_link', $comments_link, $post )
参数
  • (string)
    $comments_link
    Post comments permalink with ‘#comments’ appended.
    Required:
  • (int|WP_Post)
    $post
    Post ID or WP_Post object.
    Required:
定义位置
  • wp-includes/comment-template.php
    , line 826
引入
3.6.0
弃用

Filters the returned post comments permalink.

return apply_filters( 'get_comments_link', $comments_link, $post );