allow_empty_comment

Advertisement

Summery Summery

Filters whether an empty comment should be allowed.

Syntax Syntax

apply_filters( 'allow_empty_comment', bool $allow_empty_comment, array $commentdata )

Parameters Parameters

$allow_empty_comment

Whether to allow empty comments. Default false.

$commentdata

Array of comment data to be sent to wp_insert_comment().

Source Source

File: wp-includes/comment.php

Advertisement

Changelog Changelog

Changelog
Version Description
5.1.0 Introduced.

Advertisement

Leave a Reply