wpseek.com
WordPress开发者和主题制作者的搜索引擎



allow_empty_comment › WordPress过滤钩子

Since5.1.0
已弃用n/a
apply_filters( 'allow_empty_comment', false, $commentdata )
参数: (2)
  • (bool) $allow_empty_comment Whether to allow empty comments. Default false.
    Required: Yes
  • (array) $commentdata Array of comment data to be sent to wp_insert_comment().
    Required: Yes
定义在:
文档:

Filters whether an empty comment should be allowed.





源码

$allow_empty_comment = apply_filters( 'allow_empty_comment', false, $commentdata );