wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_prepare_nav_menu_item › WordPress Filter Hooks

Since5.9.0
Deprecatedn/a
apply_filters( 'rest_prepare_nav_menu_item', $response, $menu_item, $request )
Parameters: (3)
  • (WP_REST_Response) $response The response object.
    Required: Yes
  • (object) $menu_item Menu item setup by {@see wp_setup_nav_menu_item()}.
    Required: Yes
  • (WP_REST_Request) $request Request object.
    Required: Yes
Defined at:
Codex:

Filters the menu item data for a REST API response.





Source

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