wp_update_nav_menu

wp_update_nav_menu

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('wp_update_nav_menu') is found 3 times:

  • /wp-admin/includes/nav-menu.php line 1492
     
    	wp_defer_term_counting( false );
    
    	/** This action is documented in wp-includes/nav-menu.php */
    	do_action( 'wp_update_nav_menu', $nav_menu_selected_id );
    
    	/* translators: %s: Nav menu title. */
    	$message     = sprintf( __( '%s has been updated.' ), '<strong>' . $nav_menu_selected_title . '</strong>' );
    	$notice_args = array(
    		'id'                 => 'message',
    		'dismissible'        => true,
    
  • /wp-includes/nav-menu.php line 402
    	 *
    	 * @param int   $menu_id   ID of the updated menu.
    	 * @param array $menu_data An array of menu data.
    	 */
    	do_action( 'wp_update_nav_menu', $menu_id, $menu_data );
    	return $menu_id;
    }
    
    /**
     * Saves the properties of a menu item or create a new one.
     *
    
  • /wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php line 450
     
    		$update = update_option( 'nav_menu_options', $nav_menu_option );
    
    		/** This action is documented in wp-includes/nav-menu.php */
    		do_action( 'wp_update_nav_menu', $menu_id );
    
    		return $update;
    	}
    
    	/**
    	 * Returns the names of the locations assigned to the menu.
    

See this hook used in plugins: