Filters the capabilities for available routes in the WordPress REST API methods for Paid Memberships Pro.
pmpro_rest_api_permissions
Whether to allow REST API permissions via a filter. Default is the result of a capabilities check for pmpro_edit_memberships
or read
(for subscribers).
pmpro_rest_api_methods
Filter which methods the REST API accepts. Defaults are GET
, POST
, PUT
, and PATCH
.