Function: is_user_spammy

is_user_spammy( string | WP_User $user )

Check to see whether a user is marked as a spammer, based on user login.


Name Type(s) Default Value Description
$user string | WP_User null

Optional. Defaults to current user. WP_User object, or user login name as a string.



WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.