apply_filters( 'get_default_comment_status', string $status , string $post_type , string $comment_type )
Filters the default comment status for the given post type.
Parameters
- $status
-
Default status for the given post type, either 'open' or 'closed'.
- $post_type
-
Post type. Default is
post
. - $comment_type
-
Type of comment. Default is
comment
.
Source
File: wp-includes/comment.php
Changelog
Version | Description |
---|---|
WP-4.3.0 | Introduced. |