On this page
apply_filters( 'comments_open', bool $open, int $post_id )
Filters whether the current post is open for comments.
Parameters
$openbool-
Whether the current post is open for comments.
$post_idint-
The post ID.
Source
File: wp-includes/comment-template.php. View all references
return apply_filters( 'comments_open', $open, $post_id );
Related
Used By
| Used By | Description |
|---|---|
| comments_open() wp-includes/comment-template.php | Determines whether the current post is open for comments. |
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comments_open