apply_filters( 'wpbuddy/rich_snippets/rest/permission', $capability, $request ) → {string}
REST Permission filter.
Allows to modify the capability for the REST access.
Parameters:
Name | Type | Description |
---|---|---|
$capability |
string | The capability for the REST access. Default: manage_options. |
$request |
WP_Rest_Request |
- Since:
- 2.0.0
- Source:
Returns:
The capability for the REST persmission.
- Type
- string