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
do_action( 'wp_update_nav_menu', $menu_id, $menu_data );
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
If you are using 2 arguments for this action, in the callback function second argument needs a default empty array. If the second argument does not have a default array then it will throw the fatal error.