wp_check_comment_disallowed_list хук-событиеWP 5.5.0

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

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

add_action( 'wp_check_comment_disallowed_list', 'wp_kama_check_comment_disallowed_list_action', 10, 6 );

/**
 * Function for `wp_check_comment_disallowed_list` 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.
 * @param string $user_ip    Comment author's IP address.
 * @param string $user_agent Comment author's browser user agent.
 *
 * @return void
 */
function wp_kama_check_comment_disallowed_list_action( $author, $email, $url, $comment, $user_ip, $user_agent ){

	// action...
}
$author(строка)
Comment author.
$email(строка)
Comment author's email.
$url(строка)
Comment author's URL.
$comment(строка)
Comment content.
$user_ip(строка)
Comment author's IP address.
$user_agent(строка)
Comment author's browser user agent.

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

С версии 5.5.0 Введена.

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

wp_check_comment_disallowed_list()
wp_check_comment_disallowed_list
wp-includes/comment.php 1338
do_action( 'wp_check_comment_disallowed_list', $author, $email, $url, $comment, $user_ip, $user_agent );

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

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