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



wp_add_nav_menu_item › WordPress Action Hooks

Since4.4.0
Deprecatedn/a
do_action( 'wp_add_nav_menu_item', $menu_id, $menu_item_db_id, $args )
Parameters: (3)
  • (int) $menu_id ID of the updated menu.
    Required: Yes
  • (int) $menu_item_db_id ID of the new menu item.
    Required: Yes
  • (array) $args An array of arguments used to update/add the menu item.
    Required: Yes
Defined at:
Codex:

Fires immediately after a new navigation menu item has been added.





Source

do_action( 'wp_add_nav_menu_item', $menu_id, $menu_item_db_id, $args );