W3cubDocs

/WordPress

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

Filters whether the user has been marked as a spammer.

Parameters

$spammedbool
Whether the user is considered a spammer.
$userWP_User
User to check against.

Source

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

Changelog

Version Description
3.7.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/check_is_user_spammed