Title: wp_check_comment_disallowed_list
Published: August 11, 2020
Last modified: May 20, 2026

---

# do_action( ‘wp_check_comment_disallowed_list’, 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_check_comment_disallowed_list/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_check_comment_disallowed_list/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_check_comment_disallowed_list/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_check_comment_disallowed_list/?output_format=md#changelog)

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

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

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_check_comment_disallowed_list/?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_check_comment_disallowed_list/?output_format=md#source)󠁿

    ```php
    do_action( 'wp_check_comment_disallowed_list', $author, $email, $url, $comment, $user_ip, $user_agent );
    ```

[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#L1399)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/comment.php#L1399-L1399)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_check_comment_disallowed_list/?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_check_comment_disallowed_list/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.5.0](https://developer.wordpress.org/reference/since/5.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_check_comment_disallowed_list%2F)
before being able to contribute a note or feedback.