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:
定义位置
相关勾子
post_comments_feed_linkget_comments_linkget_comment_linkedit_comment_linkcomment_link
相关方法
post_comments_feed_linkget_comments_linkprevious_comments_linkcomments_linknext_comments_linkget_comment_link
引入
2.7.0
弃用
-

过滤格式化的文章评论链接HTML。

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