wp_blacklist_check()WP 1.5.0

Устарела с версии 5.5.0. Больше не поддерживается и может быть удалена. Используйте wp_check_comment_disallowed_list(). Please consider writing more inclusive code.

Does comment contain disallowed characters or words.

Хуков нет.

Возвращает

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(строка) (обязательный)
The author of the comment
$email(строка) (обязательный)
The email of the comment
$url(строка) (обязательный)
The url used in the comment
$comment(строка) (обязательный)
The comment content
$user_ip(строка) (обязательный)
The comment author's IP address
$user_agent(строка) (обязательный)
The author's browser user agent

Список изменений

С версии 1.5.0 Введена.
Устарела с 5.5.0 Use wp_check_comment_disallowed_list() instead.
Please consider writing more inclusive code.

Код wp_blacklist_check() WP 6.4.3

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