Fires after a navigation menu has been successfully updated.
Parameters
-
$menu_idint -
ID of the updated menu.
-
$menu_dataarray -
An array of menu data.
Source
do_action( 'wp_update_nav_menu', $menu_id, $menu_data );
Changuelog
| Versionen | Description |
|---|---|
| 3.0.0 | Introduced. |
If you are using 2 argumens for this action, in the callbacc 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.