Menu
Contains logic for the WooCommerce Navigation menu.
Description Description
Source Source
File: packages/woocommerce-admin/src/Features/Navigation/Menu.php
Methods Methods
- add_category — Adds a top level menu item to the navigation.
- add_core_items — Add core menu items.
- add_item — Adds a child menu item to the navigation.
- add_item_and_taxonomy — Add an item or taxonomy.
- add_plugin_category — Adds a plugin category.
- add_plugin_item — Adds a plugin item.
- add_setting_item — Adds a plugin setting item.
- enqueue_data — Add the menu to the page output.
- get_callback_url — Convert a WordPress menu callback to a URL.
- get_callbacks — Get registered callbacks.
- get_category_items — Get registered menu items.
- get_item_menu_id — Get an item's menu ID from its parent.
- get_items — Get registered menu items.
- get_mapped_menu_items — Gets the menu item data mapped by category and menu ID.
- get_parent_key — Get the parent key if one exists.
- get_post_type_items — Get menu item templates for a given post type.
- get_taxonomy_items — Get menu item templates for a given taxonomy.
- has_callback — Check if a menu item's callback is registered in the menu.
- hide_wp_menu_item — Add a callback to identify and hide pages in the WP menu.
- init — Init.
- instance — Get class instance.
- migrate_core_child_items — Migrate any remaining WooCommerce child items.
- migrate_menu_items — Hides all WP admin menus items and adds screen IDs to check for new items.