wp_authenticate_spam_check
wp_authenticate_spam_check ( $user )
Parameters:- (WP_User|WP_Error|null) user WP_User or WP_Error object from a previous callback. Default null.
Returns:- (WP_User|WP_Error) WP_User on success, WP_Error if the user is considered a spammer.
Defined at: - Introduced in WordPress: 3.7.0
- Deprecated in WordPress: —
Description
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.