apply_filters( ‘comments_open’, bool $comments_open, int $post_id )

In this article

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

VersionDescription
2.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.