Filters menu location data returned from the REST API.
Parameters
$responseWP_REST_Response- The response object.
$locationobject- The original location object.
$requestWP_REST_Request- Request used to generate the response.
Source
return apply_filters( 'rest_prepare_menu_location', $response, $location, $request );
Changelog
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.