Inventory_Presser_Admin_Menus::add_nav_menu_meta( int $menu_id, int $menu_item_db_id, array $args )
Links a menu item post to a Locations taxonomy term. When a user adds a phone number to a menu, we stash the location term ID in the list of CSS classes. This method extracts it, saves it in another post meta key, and removes the CSS class. The user never sees the class.
On This Page
Description Description
Stashing the Location term ID allows us to find this menu item and edit it when the user changes the phone number in taxonomy term meta.
Parameters Parameters
- $menu_id
-
(int) (Required) ID of the updated menu.
- $menu_item_db_id
-
(int) (Required) ID of the updated menu item.
- $args
-
(array) (Required) An array of arguments used to update a menu item.
Return Return
(void)