Archive | Functions RSS feed for this section

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] => […]

Function Reference: wlmapi_delete_level

Deletes an existing membership level. Parameters level_id (int) – The ID of the level to delete Return Returns a multi-dimensional array containing the operation status and an array of remaining membership levels. Example Code <?php $level = wlmapi_delete_level(1344363854); print_r($level); ?> Example Output Array ( [success] => 1 [levels] => Array ( [level] => Array ( [0] […]

Function Reference: wlmapi_update_level

Updates an existing membership level according to the specified arguments. Parameters level_id (int) – The ID of the level to update args (array) – An array of accepted arguments specified below: Parameter Description Required Default name (string) The name of the membership level. Optional. registration_url (string) The Registration URL slug. Optional. auto-generated after_login_redirect (mixed) global, homepage, or $page_id. Optional. global […]

Function Reference: wlmapi_create_level

Creates a new membership level according to the specified arguments. Parameters args (array) – An array of accepted arguments specified below: Parameter Description Required Default name (string) The name of the membership level. Required. registration_url (string) The Registration URL slug. Optional. auto-generated after_login_redirect (mixed) global, homepage, or $page_id. Optional. global after_registration_redirect (mixed) global, homepage, or […]

Function Reference: wlmapi_the_level

Displays data for the specified membership level passed through the filter: wlmapi_the_level. If no filter is applied, this function will return the unfiltered array, i.e. the same output as wlmapi_get_level. Parameters level_id (int) – The ID of the level to display Return Returns a string containing the filtered data. Example Code <?php function filter_level($level) { […]

Function Reference: wlmapi_get_level

Retrieves all information about the specified membership level. Parameters level_id (int) – The ID of the level to retrieve Return Returns a multi-dimensional array containing data for the specified membership level. Example Code <?php $level = wlmapi_get_level(1340726008); print_r($level); ?> Example Output Array ( [success] => 1 [level] => Array ( [id] => 1340726008 [name] => […]

Function Reference: wlmapi_the_levels

Retrieves a list of all membership levels passed through the filter: wlmapi_the_levels. If no filter is applied, this function will return the unfiltered array, i.e. the same output as wlmapi_get_levels. Parameters This function accepts no parameters. Return Returns a string containing the filtered list. Example Code <?php //On the page displaying the levels $levels = […]

Function Reference: wlmapi_get_levels

Retrieves all membership levels associated with a WishList Member install. Parameters This function accepts no parameters. Return Returns a multi-dimensional array containing data for each membership level. Example Code <?php $levels = wlmapi_get_levels(); print_r($levels); ?> Example Output Array ( [success] => 1 [levels] => Array ( [level] => Array ( [0] => Array ( [id] […]