wp_check_comment_disallowed_list action-hookWP 5.5.0

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

Usage

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(string)
Comment author.
$email(string)
Comment author's email.
$url(string)
Comment author's URL.
$comment(string)
Comment content.
$user_ip(string)
Comment author's IP address.
$user_agent(string)
Comment author's browser user agent.

Changelog

Since 5.5.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.