wp_blacklist_check()WP 1.5.0

Deprecated since 5.5.0. It is no longer supported and may 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.

Returns

bool. True if comment contains disallowed content, false if comment does not

Usage

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.

Changelog

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

wp_blacklist_check() code WP 7.1

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