mirror of
git://develop.git.wordpress.org/
synced 2025-03-24 22:10:02 +01:00
Docs: Improve docblock for rest_menu_read_access
filter.
Follow-up to [59718]. See #62281, #54304. git-svn-id: https://develop.svn.wordpress.org/trunk@59734 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
95247e3679
commit
d11377e16e
@ -84,9 +84,11 @@ class WP_REST_Menu_Items_Controller extends WP_REST_Posts_Controller {
|
||||
* Filters whether the current user has read access to menu items via the REST API.
|
||||
*
|
||||
* @since 6.8.0
|
||||
* @param $read_only_access bool Whether the current user has read access to menu items via the REST API.
|
||||
* @param $request WP_REST_Request Full details about the request.
|
||||
* @param $this WP_REST_Controller The current instance of the controller.
|
||||
*
|
||||
* @param bool $read_only_access Whether the current user has read access to menu items
|
||||
* via the REST API.
|
||||
* @param WP_REST_Request $request Full details about the request.
|
||||
* @param WP_REST_Controller $this The current instance of the controller.
|
||||
*/
|
||||
$read_only_access = apply_filters( 'rest_menu_read_access', false, $request, $this );
|
||||
if ( $read_only_access ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user