WordPress at a glance
function is not described

is_user_spammy() WP 3.0.0

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

No Hooks.

Return

true/false.

Usage

is_user_spammy( $user );
$user(string/WP_User)
WP_User object, or user login name as a string.
Default: current user

Code of is user spammy: wp-includes/ms-functions.php WP 5.2.1

<?php
function is_user_spammy( $user = null ) {
	if ( ! ( $user instanceof WP_User ) ) {
		if ( $user ) {
			$user = get_user_by( 'login', $user );
		} else {
			$user = wp_get_current_user();
		}
	}

	return $user && isset( $user->spam ) && 1 == $user->spam;
}