comments_open
apply_filters( ‘comments_open’, bool $open , int $post_id )
过滤器::过滤当前文章是否为评论打开。
Filter Hook: Filters whether the current post is open for comments.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$open | (bool) | 当前文章是否打开以供评论。 |
$post_id | (int) | 邮政编码。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.5.0 | wp-includes/comment-template.php:1248 | 1 | 0 |
comments_open 为WP2原创文章,链接:https://www.wp2.cn/hook/comments_open/