Abilities

Get Membership Status

lh-membership/get-membership-status Read-only Idempotent

Returns 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.

ParameterTypeRequiredDefaultDescription
user_idintegerYesThe WordPress user ID to check.
site_idintegerNoOptional. 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.

List Members

lh-membership/list-members Read-only Idempotent

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.

ParameterTypeRequiredDefaultDescription
type_slugstringNoOptional. Restrict to a single member type term slug. Omit to return members of all types.
site_idintegerNoOptional. 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.