flavietto
Forum Replies Created
-
Hi Chad,
thanks for the support. Actually i’m not using this functions, but experimenting a little i’ve not taken results. getting products for a user withwpmem_get_user_products($user->ID);
it returns a correct object (here json response)
{
“geoweb-geometra”: “1675958590”
}but using same parameters for wpmem_user_is_current(array(‘geoweb-geometra’), $user->ID); rerutns false. And i’ve cheked exiration date, it’s 2023.
Actually i’m not using role data, user is a simple subscriber and membersip product is created without role requirements. I’ve tried passing array as product slug but same resultts. Probably a problem with my system, not a plugin issue.Thanks you all, again
FlavioHi Chad,
as you read i’ve resolved using the correct parameters. Instead using wpmem_user_has_access with the same $slug and correct ID i’ve always false result.I’m not able to make more test but i will try in the future.
thanks for help.Flavio
Sorry,
i’ve checked inside source code and found that wpmem_get_user_products has user id as parameter. My fault.Thanks.
Flavio