get_default_comment_status


get_default_comment_status ( $post_type = 'post', $comment_type = 'comment' )

Parameters:
  • (string) $post_type Optional. Post type. Default 'post'.
  • (string) $comment_type Optional. Comment type. Default 'comment'.
Returns:
  • (string) Expected return value is 'open' or 'closed'.
Defined at:

Description

Gets the default comment status for a post type.

Related Functions

get_comment_statuses, wp_get_comment_status, wp_set_comment_status, get_comment_meta, get_comment_text

Top Google Results

User discussions

wpseek mobile