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: - Introduced in WordPress: 4.3.0
- Deprecated in WordPress: —
Description
Gets the default comment status for a post type.