wp_check_comment_disallowed_list
wp_check_comment_disallowed_list ( $author, $email, $url, $comment, $user_ip, $user_agent )
Parameters:- (string) author The author of the comment.
- (string) email The email of the comment.
- (string) url The url used in the comment.
- (string) comment The comment content.
- (string) user_ip The comment author's IP address.
- (string) user_agent The author's browser user agent.
Returns:- (bool) True if the comment contains disallowed content, false otherwise.
Defined at: - Introduced in WordPress: 5.5.0
- Deprecated in WordPress: —
Description
Checks if a comment contains disallowed characters or words.