apply_filters( ‘rest_menu_read_access’, bool $read_only_access, WP_REST_Request $request, WP_REST_Controller $this )

In this article

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

VersionDescription
6.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.