The WishList Member API is a powerful way to customize the WishList Member plugin. It allows for automation to be set up which really opens up the playing field in terms of what you can do with your membership site. There are 3 main ways to connect to the WishList Member API and the tutorial below runs through those methods.
- An Internal Request (using the API within a site running WishList Member)
- An External Request (working in a WordPress site and wanting to connect to another WordPress site with WishList Member installed.)
- A Request to connect the WishList Member API to an external site from a non-WishList Member/WordPress site.
Timestamps are also available if you want to jump to specific points in the video. They give a brief summary of what you’ll see in the video.
- 2:01 An Internal Request (working in a plugin or theme on a WordPress site with WishList Member installed on it. Working within the site you want to get data from.
- 2:31 Built in Helper Functions
- 3:21 functions.php
Get Levels, Add Levels, Delete Levels, Get Members, Update Members, etc.
- 5:20 An example displaying the levels on the site using the internal method.
- 6:45 An External Request (working in a WordPress site and wanting to connect to another WordPress site with WishList Member installed on it).
- 7:30 class-api-methods.php
- 8:30 Constructor example to set smart caching and pass a URL and API Key.
- 10:35 An example displaying the levels on the site using the external method.
- 11:29 A Request to connect to an external site from a non-WishList Member/WordPress site.
- 11:55 wlmapiclass.php
Post Data, Get Data, Put Data, Delete Data, etc.
- 12:34 Config file example to get levels and display them.
- 15:35 Internal requests are quicker than external requests.
- 16:52 Recommended to use internal functions when possible.
You can learn more about the WishList Member API in the following articles:
WishList Member API 2.0 Documentation and Wrapper Class