apply_filters( 'comments_open', bool $open, int $post_id )
Filters whether the current post is open for comments.
Parameters
- $open
-
(bool) Whether the current post is open for comments.
- $post_id
-
(int) The post ID.
Source
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comments_open