WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features\Navigation

CoreMenu::get_categories() public WC 1.0

Get all menu categories.

{} It's a method of the class: CoreMenu{}

No Hooks.

Return

Array. Nothing.

Usage

$result = CoreMenu::get_categories();

Code of CoreMenu::get_categories() WC 5.3.0

<?php
public static function get_categories() {
	return array(
		array(
			'title' => __( 'Orders', 'woocommerce' ),
			'id'    => 'woocommerce-orders',
			'order' => 10,
		),
		array(
			'title' => __( 'Products', 'woocommerce' ),
			'id'    => 'woocommerce-products',
			'order' => 20,
		),
		array(
			'title' => __( 'Analytics', 'woocommerce' ),
			'id'    => 'woocommerce-analytics',
			'order' => 30,
		),
		array(
			'title'  => __( 'Reports', 'woocommerce' ),
			'id'     => 'woocommerce-reports',
			'parent' => 'woocommerce-analytics',
			'order'  => 200,
		),
		array(
			'title' => __( 'Marketing', 'woocommerce' ),
			'id'    => 'woocommerce-marketing',
			'order' => 40,
		),
		array(
			'title'  => __( 'Settings', 'woocommerce' ),
			'id'     => 'woocommerce-settings',
			'menuId' => 'secondary',
			'order'  => 20,
			'url'    => 'admin.php?page=wc-settings',
		),
		array(
			'title'  => __( 'Tools', 'woocommerce' ),
			'id'     => 'woocommerce-tools',
			'menuId' => 'secondary',
			'order'  => 30,
		),
	);
}