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

Top ↑

See also


Top ↑

Parameters

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

Top ↑

Source

File: wp-includes/nav-menu.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.