Core Function
View Source on Trac ↗ get_default_comment_status()
get_default_comment_status( mixed $post_type = 'post', mixed $comment_type = 'comment' ) Gets the default comment status for a post type.
Parameters 0 required
| Name / Type | Description |
|---|---|
| $post_type string | Optional. Post type. Default 'post'. |
| $comment_type string | Optional. Comment type. Default 'comment'. |
Return Value
(string)
Either 'open' or 'closed'.
Function Information
Since Version
4.3.0
Source File
wp-includes/comment.php
Advertisement