Home/Hooks/allow_empty_comment
FILTER

allow_empty_comment

Filters whether an empty comment should be allowed.

wp-includes/comment.php
Line 3733
2 Parameters
View Source

Usage

add_filter( 'allow_empty_comment', 'your_callback_function', 10, 2 );

Filter Callback:

function your_callback_function( false, $commentdata ) {
    // Your code here
    return false;
}

Parameters

false

Parameter 1

$commentdata

Parameter 2

🔄 Filter Hook

Filter hooks allow you to modify data before it is saved to the database or displayed on the screen. Filters must return a value.