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



rest_insert_nav_menu_item › WordPress Action Hooks

Since5.9.0
Deprecatedn/a
do_action( 'rest_insert_nav_menu_item', $nav_menu_item, $request, true )
Parameters: (3)
  • (object) $nav_menu_item Inserted or updated menu item object.
    Required: Yes
  • (WP_REST_Request) $request Request object.
    Required: Yes
  • (bool) $creating True when creating a menu item, false when updating.
    Required: Yes
Defined at:
Codex:

Fires after a single menu item is created or updated via the REST API.





Source

do_action( 'rest_insert_nav_menu_item', $nav_menu_item, $request, true );