CoreMenu
in package
CoreMenu class. Handles registering Core menu items.
Table of Contents
- $instance : Menu
- Class instance.
- add_dashboard_menu_items() : mixed
- Add the dashboard items to the WP menu to create a quick-access flyout menu.
- get_categories() : array<string|int, mixed>
- Get all menu categories.
- get_excluded_items() : array<string|int, mixed>
- Get items excluded from WooCommerce menu migration.
- get_items() : array<string|int, mixed>
- Get all menu items.
- get_legacy_report_items() : array<string|int, mixed>
- Get legacy report items.
- get_setting_items() : mixed
- Add registered admin settings as menu items.
- get_shop_order_count() : array<string|int, mixed>
- Get unfulfilled order count
- get_tool_items() : array<string|int, mixed>
- Get items for tools category.
- init() : mixed
- Init.
- instance() : mixed
- Get class instance.
- register_post_types() : mixed
- Register all core post types.
- get_order_menu_items() : array<string|int, mixed>|null
- Supplies menu items for orders.
Properties
$instance
Class instance.
protected
static Menu
$instance
= null
Methods
add_dashboard_menu_items()
Add the dashboard items to the WP menu to create a quick-access flyout menu.
public
add_dashboard_menu_items() : mixed
Return values
mixed —get_categories()
Get all menu categories.
public
static get_categories() : array<string|int, mixed>
Return values
array<string|int, mixed> —get_excluded_items()
Get items excluded from WooCommerce menu migration.
public
static get_excluded_items() : array<string|int, mixed>
Return values
array<string|int, mixed> —get_items()
Get all menu items.
public
static get_items() : array<string|int, mixed>
Return values
array<string|int, mixed> —get_legacy_report_items()
Get legacy report items.
public
static get_legacy_report_items() : array<string|int, mixed>
Return values
array<string|int, mixed> —get_setting_items()
Add registered admin settings as menu items.
public
static get_setting_items() : mixed
Return values
mixed —get_shop_order_count()
Get unfulfilled order count
public
static get_shop_order_count() : array<string|int, mixed>
Return values
array<string|int, mixed> —get_tool_items()
Get items for tools category.
public
static get_tool_items() : array<string|int, mixed>
Return values
array<string|int, mixed> —init()
Init.
public
init() : mixed
Return values
mixed —instance()
Get class instance.
public
final static instance() : mixed
Return values
mixed —register_post_types()
Register all core post types.
public
register_post_types() : mixed
Return values
mixed —get_order_menu_items()
Supplies menu items for orders.
private
static get_order_menu_items() : array<string|int, mixed>|null
This varies depending on whether we are actively using traditional post type-based orders or the new custom table-based orders.