get_default_comment_status
最后更新于:2021-11-26 22:31:20
apply_filters( ‘get_default_comment_status’, string $status, string $post_type, string $comment_type )
Filters the default comment status for the given post type.
参数
- $status
-
(string)
Default status for the given post type, either ‘open’ or ‘closed’. - $post_type
-
(string)
Post type. Default ispost
. - $comment_type
-
(string)
Type of comment. Default iscomment
.
源文件
文件: gc-includes/comment.php