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

In this article

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

VersionDescription
5.9.0Introduced.

User Contributed Notes

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