roles); } public function verifyUser($user, $username, $password) { if (is_a($user, 'WP_User') && $this->isUserBlocked($user->ID)) { return new \WP_Error('authentication_failed', __('Could not authenticate, your account has been blocked', 'acychecker')); } return $user; } }