On this page
wp_blacklist_check( string $author, string $email, string $url, string $comment, string $user_ip, string $user_agent ): bool
This function has been deprecated. Use wp_check_comment_disallowed_list() instead. Please consider writing more inclusive code.
Does comment contain disallowed characters or words.
Parameters
$authorstring Required-
The author of the comment
$emailstring Required-
The email of the comment
$urlstring Required-
The url used in the comment
$commentstring Required-
The comment content
$user_ipstring Required-
The comment author's IP address
$user_agentstring Required-
The author's browser user agent
Return
bool True if comment contains disallowed content, false if comment does not
Source
File: wp-includes/deprecated.php. View all references
function wp_blacklist_check( $author, $email, $url, $comment, $user_ip, $user_agent ) {
_deprecated_function( __FUNCTION__, '5.5.0', 'wp_check_comment_disallowed_list()' );
return wp_check_comment_disallowed_list( $author, $email, $url, $comment, $user_ip, $user_agent );
}
Related
Uses
| Uses | Description |
|---|---|
| wp_check_comment_disallowed_list() wp-includes/comment.php | Checks if a comment contains disallowed characters or words. |
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Use wp_check_comment_disallowed_list() instead. Please consider writing more inclusive code. |
| 1.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_blacklist_check