Petra
AI assistant for GrootMade
Hi! I'm Petra 👋 Ask me to help you find the perfect WP plugin, theme, or template kit.
forked from Paid Memberships Pro - REST API Demo™
Elite Access Circle - REST API Demo is not affiliated with Paid Memberships Pro - REST API Demo. The name and any related trademarks are used solely for nominative descriptive purposes.
This plugin adds a set of specific REST API endpoints for managing a membership site built with Paid Memberships Pro. It is designed for developers who need to integrate membership functions like access control and user management into external applications or custom workflows.
has_membership_access method returns a true or false value to verify if a specific user can view protected content, using a post ID and user identifier.get_membership_level_for_user and change_membership_level allow you to fetch a user's current level or programmatically assign a new one, including creating new users with a membership.membership_level endpoint lets you retrieve, update, create, or delete entire membership level definitions directly through API calls.discount_code method to get, update, or create promotional discount code objects for use in your membership system.checkout_level method returns the final price for a membership level after applying factors like discount codes, useful for building custom checkout experiences.