comments_open ( $post_id = null )
- (int|WP_Post) post_id Post ID or WP_Post object. Default current post.
- (bool) True if the comments are open.
- Introduced in WordPress: 1.5.0
- Deprecated in WordPress: —
Determines whether the current post is open for comments.For more information on this and similar theme functions, check out
the [Conditional Tags](https://developer.wordpress.org/themes/basics/conditional-tags/) article in the Theme Developer Handbook.