apply_filters( 'allow_empty_comment', bool $allow_empty_comment , array $commentdata )
Filters whether an empty comment should be allowed.
Description Description
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
Changelog Changelog
Version | Description |
---|---|
5.1.0 | Introduced. |
User Contributed Notes User Contributed Notes
-
Skip to note 1 content You must log in to vote on the helpfulness of this noteVote results for this note: 0You must log in to vote on the helpfulness of this note