Tag Archives | members

Function Reference: wlmapi_get_level_member_data

Retrieves all membership data for the specified member and level. Parameters level_id (int) – The ID of the level to retrieve data for member_id (int) – The ID of the member to retrieve data for Return Returns a multi-dimensional array containing membership data for the specified member. Example Code <?php $member = wlmapi_get_level_member_data(1340726008, 11); print_r($member); ?> […]

Function Reference: wlmapi_add_member_to_level

Adds a member to a membership level according to the specified arguments. Parameters level_id (int) – The ID of the level to add the member to args (array) – An array of accepted arguments specified below: Parameter Description Required Default Users (array) An array of member IDs to add to the level Required Cancelled (boolean) Cancellation status for the […]

Function Reference: wlmapi_the_level_members

Retrieves all members of the specified level passed through the filter: wlmapi_the_level_members. If no filter is applied, this function will return the unfiltered array, i.e. the same output as wlmapi_get_level_members. Parameters level_id (int) – The ID of the level to retrieve members from Return Returns a string containing the filtered list. Example Code <?php //On the […]

Function Reference: wlmapi_get_level_members

Retrieves all members of the specified level. Parameters level_id (int) – The ID of the level to retrieve members from Return Returns a multi-dimensional array containing data for each member. Example Code <?php $members = wlmapi_get_level_members(1340726008); print_r($members); ?> Example Output Array ( [success] => 1 [members] => Array ( [member] => Array ( [0] => […]