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



comments_open ›

Since2.5.0
已弃用n/a
apply_filters( 'comments_open', $open, $post_id )
参数: (2)
  • (bool) $open Whether the current post is open for comments.
    Required: Yes
  • (int) $post_id The post ID.
    Required: Yes
定义在:
文档:

Filters whether the current post is open for comments.





源码

return apply_filters( 'comments_open', $open, $post_id );