wp_update_nav_menu WordPress Action Hook
The wp_update_nav_menu hook is called when a nav menu is updated. This hook is useful for doing custom actions when a nav menu is updated. For example, you could use this hook to update a custom field associated with the nav menu.
do_action( 'wp_update_nav_menu', int $menu_id , array $menu_data ) #
Fires after a navigation menu has been successfully updated.
Parameters
- $menu_id
(int)ID of the updated menu.
- $menu_data
(array)An array of menu data.
Source
File: wp-includes/nav-menu.php
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |