post_comments_link
apply_filters( ‘post_comments_link’, string $formatted , int|WP_Post $post )
过滤器::过滤格式化的post comments链接HTML。
Filter Hook: Filters the formatted post comments link HTML.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$formatted | (string) | HTML格式的post comments链接。 |
$post | (int | WP_Post) | post ID或WP_post对象。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.7.0 | wp-includes/comment-template.php:1835 | 1 | 0 |
post_comments_link 为WP2原创文章,链接:https://www.wp2.cn/hook/post_comments_link/