Filters whether the current user has read access to menu items via the REST API.
Parameters
$read_only_accessbool- Whether the current user has read access to menu items via the REST API.
$requestWP_REST_Request- Full details about the request.
$thisWP_REST_Controller- The current instance of the controller.
Source
$read_only_access = apply_filters( 'rest_menu_read_access', false, $request, $this );
Changelog
| Version | Description |
|---|---|
| 6.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.