allow_empty_comment

过滤钩子


apply_filters( 'allow_empty_comment', false, $commentdata )
参数
  • (bool)
    $allow_empty_comment
    Whether to allow empty comments. Default false.
    Required:
  • (array)
    $commentdata
    Array of comment data to be sent to wp_insert_comment().
    Required:
定义位置
  • wp-includes/comment.php
    , line 3632
引入
5.1.0
弃用

Filters whether an empty comment should be allowed.

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