wp_blacklist_check()WP 1.5.0

Deprecated from version 5.5.0. It is no longer supported and can be removed in future releases. Use wp_check_comment_disallowed_list(). Please consider writing more inclusive code instead.

Does comment contain disallowed characters or words.

No Hooks.


true|false. True if comment contains disallowed content, false if comment does not


wp_blacklist_check( $author, $email, $url, $comment, $user_ip, $user_agent );
$author(string) (required)
The author of the comment
$email(string) (required)
The email of the comment
$url(string) (required)
The url used in the comment
$comment(string) (required)
The comment content
$user_ip(string) (required)
The comment author's IP address
$user_agent(string) (required)
The author's browser user agent


Since 1.5.0 Introduced.
Deprecated Since 5.5.0 Use wp_check_comment_disallowed_list() instead.
Please consider writing more inclusive code.

Code of wp_blacklist_check() WP 6.0

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 );