wp_check_comment_disallowed_list

wp_check_comment_disallowed_list

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('wp_check_comment_disallowed_list') is found 1 times:

  • /wp-includes/comment.php line 1359
    	 * @param string $comment    Comment content.
    	 * @param string $user_ip    Comment author's IP address.
    	 * @param string $user_agent Comment author's browser user agent.
    	 */
    	do_action( 'wp_check_comment_disallowed_list', $author, $email, $url, $comment, $user_ip, $user_agent );
    
    	$mod_keys = trim( get_option( 'disallowed_keys' ) );
    	if ( '' === $mod_keys ) {
    		return false; // If moderation keys are empty.
    	}