Filters the default comment status for the given post type.
$statusstring
'open' or 'closed'.$post_typestring
post.$comment_typestring
comment.return apply_filters( 'get_default_comment_status', $status, $post_type, $comment_type );
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_default_comment_status