WordPress开发者和主题制作者的搜索引擎



get_comments_link ›

Since3.6.0
已弃用n/a
apply_filters( 'get_comments_link', $comments_link, $post_id )
参数: (2)
  • (string) $comments_link Post comments permalink with '#comments' appended.
    Required: Yes
  • (int|WP_Post) $post_id Post ID or WP_Post object.
    Required: Yes
定义在:
文档:

Filters the returned post comments permalink.





源码

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