过滤器::过滤给定post类型的默认注释状态。
apply_filters( ‘get_default_comment_status’, string $status , string $post_type , string $comment_type )
参数(Parameters)
| 参数 | 类型 | 说明 |
|---|---|---|
| $status | (string) | “打开”或“关闭”给定文章类型的默认状态。 |
| $post_type | (string) | 岗位类型。默认为post。 |
| $comment_type | (string) | 注释类型。默认为“注释”。 |
| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 4.3.0 | wp-includes/comment.php:308 | 1 | 0 |





















