Filters whether the current post is open for comments.
Parameters
$comments_openbool- Whether the current post is open for comments.
$post_idint- The post ID.
Source
return apply_filters( 'comments_open', $comments_open, $post_id );
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.