On this page
do_action( 'wp_create_nav_menu', int $term_id, array $menu_data )
Fires after a navigation menu is successfully created.
Parameters
$term_idint-
ID of the new menu.
$menu_dataarray-
An array of menu data.
Source
File: wp-includes/nav-menu.php. View all references
do_action( 'wp_create_nav_menu', $_menu['term_id'], $menu_data );
Related
Used By
| Used By | Description |
|---|---|
| wp_update_nav_menu_object() wp-includes/nav-menu.php | Saves the properties of a menu or create a new menu with those properties. |
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_create_nav_menu