This is a premium article to release one of my code snippets,
When you purchase access to this tutorial, you get the same code used in this video walkthrough, as-is, with no support or refunds.
You will also get any updates I make to this particular snippet; all you need to do is redownload them when an update is made.
Please Note:
If I turn it into a different tool, you will not get access to that tool, but your access to this snippet will remain.
Please watch the video to know what the script does
✅ List SureMembers Access Groups
✅ Search WordPress Users
✅ Lookup Users by Email Address
✅ Grant Membership Access
✅ Revoke Membership Access
✅ Authenticate using WordPress Application Passwords
✅ Integrate with automation platforms such as FlowMattic, n8n, OttoKit, Make.com, Zapier and custom applications.
In this demo, I walk through:
- Listing available SureMembers groups
- Looking up users
- Granting a membership
- Revoking a membership
- Verifying the changes inside WordPress
- Secure authentication using the WordPress REST API
Method Endpoint
GET /groups
GET /groups?search=
GET /users
GET /users?per_page=
GET /users?search=
GET /users?email=
POST /users/{id}/groups/{group}
DELETE /users/{id}/groups/{group}
POST /users/by-email/{email}/groups/{group}
DELETE /users/by-email/{email}/groups/{group}
The API authenticates using WordPress Application Passwords over HTTPS, so it’s designed to be used securely by trusted external applications.
The Plugin Code is below. The best way to use this code is to add it to your plugins folder in a folder called suremember-secure-api with a PHP file called suremember-secure-api.php. It should work fine, though, from your functions.php file or good snippet editors like WPCodeBox
How do you want to access our premium content?
You’re viewing a premium article: SureMembers REST API.
Perfect if you only need this one article right now.
- Instant access to this article
- No subscription required
- Fast checkout
Unlimited access to all premium articles, plus member-only snippets and downloads.
- Read every premium article on the site
- Access snippets, templates & downloads
- New content added regularly
