Core Function
View Source on Trac ↗ wp_check_comment_disallowed_list()
wp_check_comment_disallowed_list(
mixed $author,
mixed $email,
mixed $url,
mixed $comment,
mixed $user_ip,
mixed $user_agent
) Checks if a comment contains disallowed characters or words.
Parameters 6 required
| Name / Type | Description |
|---|---|
| $author string | The author of the comment. Required |
| $email string | The email of the comment. Required |
| $url string | The url used in the comment. Required |
| $comment string | The comment content. Required |
| $user_ip string | The comment author's IP address. Required |
| $user_agent string | The author's browser user agent. Required |
Return Value
(bool)
True if the comment contains disallowed content, false otherwise.
Function Information
Since Version
5.5.0
Source File
wp-includes/comment.php
Advertisement