allow_empty_comment
apply_filters( ‘allow_empty_comment’, bool $allow_empty_comment , array $commentdata )
筛选挂钩:筛选是否应允许空注释。
Filter Hook: Filters whether an empty comment should be allowed.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$allow_empty_comment | (bool) | 是否允许空评论。默认为false。 |
$commentdata | (array) | 要发送到wp_insert_comment()的注释数据数组。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.1.0 | wp-includes/comment.php:3380 | 1 | 0 |
allow_empty_comment 为WP2原创文章,链接:https://www.wp2.cn/hook/allow_empty_comment/