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

---

# apply_filters( ‘check_is_user_spammed’, bool $spammed, WP_User $user )

## In this article

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

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

Filters whether the user has been marked as a spammer.

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

 `$spammed`bool

Whether the user is considered a spammer.

`$user`[WP_User](https://developer.wordpress.org/reference/classes/wp_user/)

User to check against.

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

    ```php
    $spammed = apply_filters( 'check_is_user_spammed', is_user_spammy( $user ), $user );
    ```

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

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

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

For Multisite blogs, checks if the authenticated user has been marked as a spammer, or if the user’s primary blog has been marked as spam.

  |

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

| Version | Description | 
| [3.7.0](https://developer.wordpress.org/reference/since/3.7.0/) | Introduced. |

## User Contributed Notes

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