wp_blacklist_check( string $author, string $email, string $url, string $comment, string $user_ip, string $user_agent ): bool

In this article

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

$authorstringrequired
The author of the comment
$emailstringrequired
The email of the comment
$urlstringrequired
The url used in the comment
$commentstringrequired
The comment content
$user_ipstringrequired
The comment author’s IP address
$user_agentstringrequired
The author’s browser user agent

Return

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

Source

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

Changelog

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

User Contributed Notes

You must log in before being able to contribute a note or feedback.