WooCommerce Code Reference

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

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_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_legacy_report_items()

Get legacy report items.

public static get_legacy_report_items() : array<string|int, mixed>
Return values
array<string|int, 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.

Return values
array<string|int, mixed>|null