comments_open
comments_open ( $post = null )
Parameters:- (int|WP_Post) post Optional. Post ID or WP_Post object. Default current post.
Returns:- (bool) True if the comments are open.
Defined at: - Introduced in WordPress: 1.5.0
- Deprecated in WordPress: —
Description
Determines whether the current post is open for comments.For more information on this and similar theme functions, check out
the {@link Conditional Tags} article in the Theme Developer Handbook.