Filters whether the current post is open for comments.
$comments_openbool$post_idintwp-includes/comment-template.php:1329comments_open() * * @since 2.5.0 * * @param bool $comments_open Whether the current post is open for comments. * @param int $post_id The post ID. */ return apply_filters( 'comments_open', $comments_open, $post_id );} /** * Determines whether the current post is open for pings. * * For more information on this and similar theme functions, check outIntroduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.