Title: wp_blacklist_check
Published: April 25, 2014
Last modified: May 20, 2026

---

# do_action_deprecated( ‘wp_blacklist_check’, string $author, string $email, string $url, string $comment, string $user_ip, string $user_agent )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_blacklist_check/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_blacklist_check/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_blacklist_check/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_blacklist_check/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/wp_blacklist_check/?output_format=md#wp--skip-link--target)

This hook has been deprecated since 5.5.0. Use {@see ‘wp_check_comment_disallowed_list’}
instead.

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

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_blacklist_check/?output_format=md#parameters)󠁿

 `$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.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wp_blacklist_check/?output_format=md#source)󠁿

    ```php
    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.' )
    );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/comment.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/comment.php#L1379)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/comment.php#L1379-L1385)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_blacklist_check/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_check_comment_disallowed_list()](https://developer.wordpress.org/reference/functions/wp_check_comment_disallowed_list/)`wp-includes/comment.php` |

Checks if a comment contains disallowed characters or words.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wp_blacklist_check/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.5.0](https://developer.wordpress.org/reference/since/5.5.0/) | Deprecated. Use ['wp_check_comment_disallowed_list'](https://developer.wordpress.org/reference/hooks/wp_check_comment_disallowed_list/) instead. | 
| [1.5.0](https://developer.wordpress.org/reference/since/1.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_blacklist_check%2F)
before being able to contribute a note or feedback.