Archive | API Documentation RSS feed for this section

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