Elgg\Database\UsersTable::getValidationStatus PHP Method

getValidationStatus() public method

Gets the validation status of a user.
public getValidationStatus ( integer $user_guid ) : boolean | null
$user_guid integer The user's GUID
return boolean | null Null means status was not set for this user.
    public function getValidationStatus($user_guid)
    {
        $user = get_entity($user_guid);
        if (!$user || !isset($user->validated)) {
            return null;
        }
        return (bool) $user->validated;
    }