WP Manifestindependent plugin directory
manifest / integrations / pmpro-rest-api

REST API Endpoints for Paid Memberships Pro

REST API add-on for Paid Memberships Pro

by eighty20results · github.com/eighty20results/pmpro-rest-api · website

7stars
2forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/eighty20results/pmpro-rest-api/archive/refs/heads/master.zip

From the readme

WordPress REST API v2 endpoints for the Paid Memberships Pro plugin This plugin adds basic REST API support for the free Paid Memberships Pro plugin. It currently extends Paid Memberships Pro to support the same endpoints/API calls as the plugin itself includes for XMLRPC. The plan is to add more API endpoints as needed/requested. Please submit your required endpoints on our development site 1. Upload the pmpro-rest-api directory to the /wp-content/plugins/ directory 1. Activate the plugin through the 'Plugins' menu in WordPress The REST API Endpoints for Paid Memberships Pro plugin currently supports 2 different endpoints and provides the same functionality as the built-in XMLRPC api in the core Paid Memberships Pro plugin. That is, there is support for the hasaccess endpoint, and for the getlevelforuser endpoint The hasaccess endpoint has two (2) required variables that needs to be included in the readable (GET) request route: 1. post ID 1. user ID Both arguments are a numeric value representing the post ID and user ID to check access on behalf of. against. The following example URI would return an array containing the access permissing (true/false), the membership ID,

Read the full README on GitHub →