Filters menu location data returned from the REST API.
$responseWP_REST_Response$locationobject$requestWP_REST_Requestwp-includes/rest-api/endpoints/class-wp-rest-menu-locations-controller.php:210WP_REST_Menu_Locations_Controller::prepare_item_for_response() * @since 5.9.0 * * @param WP_REST_Response $response The response object. * @param object $location The original location object. * @param WP_REST_Request $request Request used to generate the response. */ return apply_filters( 'rest_prepare_menu_location', $response, $location, $request ); } /** * Prepares links for the request. * * @since 5.9.0Introduced in 5.9.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.