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) Either '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_default_block_editor_settings, delete_comment_meta

Top Google Results

User discussions

wpseek mobile