get-membership-status Get Membership Statuslist-members List MembersReturns whether a given user is a member of this site, and their member type, based on the lh_membership_member_type taxonomy. Requires edit_users. Pass site_id to act on another site you belong to.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
user_id | integer | Yes | The WordPress user ID to check. | |
site_id | integer | No | Optional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site. |
Lists users who hold a term in the lh_membership_member_type taxonomy on this site (i.e. are members), optionally filtered by member type slug. Requires edit_users. Pass site_id to act on another site you belong to.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
type_slug | string | No | Optional. Restrict to a single member type term slug. Omit to return members of all types. | |
site_id | integer | No | Optional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site. |