post_comments_link

过滤钩子


apply_filters( 'post_comments_link', $formatted_link, $post )
参数
  • (string)
    $formatted
    The HTML-formatted post comments link.
    Required:
  • (int|WP_Post)
    $post
    The post ID or WP_Post object.
    Required:
定义位置
  • wp-includes/comment-template.php
    , line 1865
引入
2.7.0
弃用

Filters the formatted post comments link HTML.

return apply_filters( 'post_comments_link', $formatted_link, $post );