W3cubDocs

/WordPress

do_action( 'wp_create_nav_menu', int $term_id, array $menu_data )

Fires after a navigation menu is successfully created.

Parameters

$term_id

(int) ID of the new menu.

$menu_data

(array) An array of menu data.

Source

File: wp-includes/nav-menu.php

View on Trac

Changelog

Version Description
3.0.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_create_nav_menu