wpseek.com
A WordPress-centric search engine for devs and theme authors



allow_empty_comment › WordPress Filter Hooks

Since5.1.0
Deprecatedn/a
apply_filters( 'allow_empty_comment', false, $commentdata )
Parameters: (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
Defined at:
Codex:

Filters whether an empty comment should be allowed.





Source

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