Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-admin/includes/nav-menu.php | do_action | 1247 | /** * Saves nav menu items * * @since 3.6.0 * * @param int|string $nav_menu_selected_id ID, slug, or name of the currently-selected menu. * @param string $nav_menu_selected_title Title of the currently-selected menu. * @return array The menu updated message */ |
wp-includes/nav-menu.php | do_action | 402 | /** * Fires after a navigation menu has been successfully updated. * * @since 3.0.0 * * @param int $menu_id ID of the updated menu. * @param array $menu_data An array of menu data. */ |
wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php | do_action | 450 | /** * Updates the menu's auto add from a REST request. * * @since 5.9.0 * * @param int $menu_id The menu id to update. * @param WP_REST_Request $request Full details about the request. * @return bool True if the auto add setting was successfully updated. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
int | $menu_id | ID of the updated menu. |
array | $menu_data | An array of menu data. |