Core Function
View Source on Trac ↗ wp_blacklist_check()
wp_blacklist_check(
mixed $author,
mixed $email,
mixed $url,
mixed $comment,
mixed $user_ip,
mixed $user_agent
) Does comment contain 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 comment contains disallowed content, false if comment does not
Function Information
Since Version
1.5.0
Source File
wp-includes/deprecated.php
Advertisement