do_action( 'wp_add_nav_menu_item', int $menu_id, int $menu_item_db_id, array $args )

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


Description

See also


Parameters

$menu_id

ID of the updated menu.

$menu_item_db_id

ID of the new menu item.

$args

An array of arguments used to update/add the menu item.


Source

File: wp-includes/nav-menu.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.4.0 Introduced.