apply_filters( ‘rest_prepare_nav_menu_item’, WP_REST_Response $response, object $menu_item, WP_REST_Request $request )

In this article

Filters the menu item data for a REST API response.

Parameters

$responseWP_REST_Response
The response object.
$menu_itemobject
Menu item setup by wp_setup_nav_menu_item().
$requestWP_REST_Request
Request object.

Source

return apply_filters( 'rest_prepare_nav_menu_item', $response, $menu_item, $request );

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

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