过滤当前帖子是否开放以供评论。
原型
apply_filters( 'comments_open', bool $open, int $post_id )
参数
$open
(bool)
目前的帖子是否开放征求意见。
$post_id
(int)
帖子ID。
源文件
路径:wp-includes/comment-template.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/comments_open/