On this page
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
$statusstring-
Default status for the given post type, either
'open'or'closed'. $post_typestring-
Post type. Default is
post. $comment_typestring-
Type of comment. Default is
comment.
Source
File: wp-includes/comment.php. View all references
return apply_filters( 'get_default_comment_status', $status, $post_type, $comment_type );
Related
Used By
| Used By | Description |
|---|---|
| get_default_comment_status() wp-includes/comment.php | Gets the default comment status for a post type. |
Changelog
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_default_comment_status