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:

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.

Related Functions

comment_type, comments_link, comments_popup_link, is_comments_popup, add_comments_page

Top Google Results

User discussions

wpseek mobile