Inventory_Presser_Admin_Menus

Inventory_Presser_Admin_Menus


Methods

  • __construct — __construct
  • add_add_menu_items — Adds a meta box to the Appearance > Menus sidebar list where post types and taxonomies appear by default.
  • add_hooks — Set up filter and action hooks
  • add_nav_menu_meta — 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.
  • nav_menus_phone_numbers_meta_box — nav_menus_phone_numbers_meta_box
  • phone_link_target — Creates a link target that dials a phone number given a number. No support for international numbers.
  • update_phone_numbers_in_menus — Updates phone numbers in menu items when phone numbers are updated in the Locations taxonomy term meta.