Filters the menu item data for a REST API response.
Parameters
$response
WP_REST_Response- The response object.
$menu_item
object- Menu item setup by wp_setup_nav_menu_item().
$request
WP_REST_Request- Request object.
Source
return apply_filters( 'rest_prepare_nav_menu_item', $response, $menu_item, $request );
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.