Archive | API Documentation RSS feed for this section

Function Reference: wlmapi_get_member_by

Retrieves all information about the specified member by a specified field (name, login). Parameters field (string) – Data type to retrieve member by (user_email or user_login) value (string) – Value of specified data type (e.g. email@domain.com) Return Returns a multi-dimensional array containing data for the specified member. Example Code <?php $member = wlmapi_get_member_by(‘user_email’, ‘email@domain.com’); print_r($member); […]

Content Hooks

wishlistmember_add_categories_levels (action) Called when a category is added to one or more levels Parameters: $id – Category ID $levels – Membership Levels wishlistmember_remove_categories_levels (action) Called when a category is removed from one or more levels Parameters: $id – Category ID $levels – Membership Levels wishlistmember_add_pages_levels (action) Called when a page is added to one or […]

Membership Level Hooks

wishlistmember_remove_user_levels (action) Called when a member is removed from one or more levels Parameters: $id – Member ID $levels – Membership Levels wishlistmember_add_user_levels (action) Called when a member is added to one or more levels Parameters: $id – Member ID $levels – Membership Levels wishlistmember_unapprove_user_levels (action) Called when a member is unapproved on one or […]

Shopping Cart Hooks

wlmem_paypal_ipn_response (action) Called after receiving a successful IPN from Paypal wishlistmember_shoppingcart_register (action) Called when a new member is signed-up via one of the shopping cart integrations. Information about the registration can be found in the $_POST variable. wishlistmember_shoppingcart_reactivate (action) Called when a shopping cart integration receives a “Activate” command such as when a recurring payment […]

Registration Hooks

wishlistmember_registration_page (filter) Applied to the WishList Member registration page wishlistmember_after_registration_page (filter) Applied to the page that redirects to the configured after registration page. Note that this is not a filter for the actual registration page. You can use this to add more steps to the WishList Member registration process. wishlistmember_after_registration (action) Called after the registration […]

Function Reference: WishListMemberAPIRequest

Calls the WishList Member API internally. This is the sister function of the wlmapiclass class which handles all external API requests. Parameters request (int) – The resource to request (e.g. “/levels”) method (int) – The method to use (GET, POST, PUT, DELETE). Default is GET data (array) – An associative array of data to pass to the API (required […]

Class Reference: wlmapiclass

The wlmapiclass handles external connections to the WishList Member API. It is the sister class for the WishListMemberAPIRequest() function included in WishList Member which handles all internal API requests. This class along with wlmapiclass.php and functions.php are already installed in the latest version of WishList Member. You do NOT need to include them in your plugin/theme if […]

Class Reference: WLMAPIMethods

The WLMAPIMethods class is the service class for the helper functions in core/api-helper/functions.php. The class does all the work of connecting to the WishList Member API, authenticating, checking internal vs external connection, caching, and processing requests. The class defaults to connecting to the local WishList Member install. However, it can be used directly to connect […]

Function Reference: wlmapi_unmanage_post

Un-protects posts and removes them from the membership level. Parameters level_id (int) – The ID of the level to remove posts from post_ids (int) – Accepts an array or comma-seprated list of post IDs Return Returns a multi-dimensional array containing operation status for each post. Example Code <?php $posts = wlmapi_unmanage_post(1340726008, ‘1,60,62’); print_r($posts); ?> Example Output Array ( […]

Function Reference: wlmapi_manage_post

Protects posts and adds them to the membership level. Parameters level_id (int) – The ID of the level to add posts to post_ids (int) – Accepts an array or comma-seprated list of post IDs Return Returns a multi-dimensional array containing operation status and an array containing data for all posts that belong to the specified level. Example Code […]