wp_blacklist_check хук-событиеWP 1.5.0

Устарел с версии 5.5.0. Больше не поддерживается и может быть удален. Смотрите wp_check_comment_disallowed_list.

Fires before the comment is tested for disallowed characters or words.

Использование

add_action( 'wp_blacklist_check', 'wp_kama_blacklist_check_action', 10, 4 );

/**
 * Function for `wp_blacklist_check` action-hook.
 * 
 * @param string $author  Comment author.
 * @param string $email   Comment author's email.
 * @param string $url     Comment author's URL.
 * @param string $comment Comment content.
 *
 * @return void
 */
function wp_kama_blacklist_check_action( $author, $email, $url, $comment ){

	// action...
}
$author(строка)
Comment author.
$email(строка)
Comment author's email.
$url(строка)
Comment author's URL.
$comment(строка)
Comment content.

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

С версии 1.5.0 Введена.
Устарела с 5.5.0 Use {@see 'wp_check_comment_disallowed_list'} instead.

Где вызывается хук

wp_check_comment_disallowed_list()
wp_blacklist_check
wp-includes/comment.php 1320-1326
do_action_deprecated(
	'wp_blacklist_check',
	array( $author, $email, $url, $comment, $user_ip, $user_agent ),
	'5.5.0',
	'wp_check_comment_disallowed_list',
	__( 'Please consider writing more inclusive code.' )
);

Где используется хук в WordPress

Использование не найдено.