I am trying to understand how to work with the M2 API. I just need to figure out how I can check Membership Attributes, Membership Status of user and verify membership status.
Looking for a solution as like mentioned in the following article:
https://wpmudev.com/forums/topic/membership-2-api-implementation-help?replies=5#post-1004913
So, it would be easier to call the attributes, like for example:
$_m2_status = $member->status;
$_m2_attributes = $member->attributes;
If you could suggest an example on how to call the methods as requested above, it would be helpful.