WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about wp_add_nav_menu_item

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/nav-menu.php do_action 547 /**
* Fires immediately after a new navigation menu item has been added.
*
* @since 4.4.0
*
* @see wp_update_nav_menu_item()
*
* @param int $menu_id ID of the updated menu.
* @param int $menu_item_db_id ID of the new menu item.
* @param array $args An array of arguments used to update/add the menu item.
*/

Hook Parameters

Parameter Type Name Description
int $menu_id ID of the updated menu.
int $menu_item_db_id ID of the new menu item.
array $args An array of arguments used to update/add the menu item.