Filters menu location data returned from the REST API.
Parameters
$response
WP_REST_Response- The response object.
$location
object- The original location object.
$request
WP_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.