wpUserLoggedIn static method
Check if a user is logged in
Implementation
static Future<bool> wpUserLoggedIn() async {
WpUser? _wpUser = await wpUser();
if (_wpUser == null) {
return false;
}
if (_wpUser.token == null) {
return false;
}
return true;
}