apply_filters( 'rest_prepare_menu_location', WP_REST_Response $response, object $location, WP_REST_Request $request )

Filters menu location data returned from the REST API.


Parameters

$response

The response object.

$location

The original location object.

$request

Request used to generate the response.


Source

File: wp-includes/rest-api/endpoints/class-wp-rest-menu-locations-controller.php

View on GitHub



Changelog

Changelog
Version Description
5.9.0 Introduced.