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

(bool) Whether to allow empty comments. Default false.

$commentdata

(array) 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

This site uses Akismet to reduce spam. Learn how your comment data is processed.