wp_add_nav_menu_item

Advertisement

Summery Summery

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

Syntax Syntax

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

Parameters 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.

Source Source

File: wp-includes/nav-menu.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

See also See also

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.