wp_update_nav_menu_item action-hook . WP 3.0.0
Fires after a navigation menu item has been updated.
Usage
add_action( 'wp_update_nav_menu_item', 'action_function_name_1693', 10, 3 ); function action_function_name_1693( $menu_id, $menu_item_db_id, $args ){ // action... }
- $menu_id(int)
- ID of the updated menu.
- $menu_item_db_id(int)
- ID of the updated menu item.
- $args(array)
- An array of arguments used to update a menu item.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
wp_update_nav_menu_item
wp-includes/nav-menu.php 590
do_action( 'wp_update_nav_menu_item', $menu_id, $menu_item_db_id, $args );
Where in WP core the hook is used WordPress
wp-includes/nav-menu.php 175
add_action( 'wp_update_nav_menu_item', array( $this, 'flush_cached_value' ), 10, 2 );