Filters whether the current user has read access to menu items via the REST API.
Parameters
$read_only_access
bool- Whether the current user has read access to menu items via the REST API.
$request
WP_REST_Request- Full details about the request.
$this
WP_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.