Fires before the comment is tested for disallowed characters or words.
Parameters
$author
string- Comment author.
$email
string- Comment author’s email.
$url
string- Comment author’s URL.
$comment
string- Comment content.
$user_ip
string- Comment author’s IP address.
$user_agent
string- Comment author’s browser user agent.
Source
*/
return apply_filters( 'pre_comment_approved', $approved, $comment_data );
}
/**
* Checks if a comment contains disallowed characters or words.
*
Changelog
Version | Description |
---|---|
5.5.0 | Use 'wp_check_comment_disallowed_list' instead. |
1.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.