Filters the capabilities for available routes in the WordPress REST API methods for Paid Memberships Pro.


apply_filters( 'pmpro_rest_api_route_capabilities', array $route_caps, WP_REST_Request $request );

Parameters

$route_caps
array of REST API routes and their capability (permissions check).
$request
The API request to check.

Return Value

array


Source

File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/includes/rest-api.php

View in Source Code