wpseek.com
A WordPress-centric search engine for devs and theme authors



comments_open › WordPress Filter Hooks

Since2.5.0
Deprecatedn/a
apply_filters( 'comments_open', $comments_open, $post_id )
Parameters: (2)
  • (bool) $comments_open Whether the current post is open for comments.
    Required: Yes
  • (int) $post_id The post ID.
    Required: Yes
Defined at:
Codex:

Filters whether the current post is open for comments.





Source

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