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 WP_REST_Response
The response object.
$location object
The original location object.
$request WP_REST_Request
Request used to generate the response.

Top ↑

Source

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

return apply_filters( 'rest_prepare_menu_location', $response, $location, $request );


Top ↑

Changelog

Changelog
Version Description
5.9.0 Introduced.

Top ↑

User Contributed Notes

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