WordPress at a glance
filter is not described

allow_empty_comment filter-hook . WP 5.1.0

Filters whether an empty comment should be allowed.

Usage

add_filter( 'allow_empty_comment', 'filter_function_name_1772', 10, 2 );
function filter_function_name_1772( $allow_empty_comment, $commentdata ){
	// filter...

	return $allow_empty_comment;
}
$allow_empty_comment(true/false)
Whether to allow empty comments.
Default: false
$commentdata(array)
Array of comment data to be sent to wp_insert_comment().

Changelog

Since 5.1.0 Introduced.

Where the hook is called

wp_handle_comment_submission()
allow_empty_comment
wp-includes/comment.php 3308
$allow_empty_comment = apply_filters( 'allow_empty_comment', false, $commentdata );

Where the hook is used (in WP core)

Usage not found!