2021-11-25 18:16:17 +00:00
|
|
|
/**
|
|
|
|
* WP top-level menu items and their associated sub-menus
|
|
|
|
*/
|
|
|
|
|
|
|
|
export const MENUS = [
|
|
|
|
[
|
|
|
|
'WooCommerce',
|
|
|
|
'#adminmenu > li:nth-child(8) > a',
|
|
|
|
[
|
|
|
|
[
|
|
|
|
'Home',
|
2021-11-26 16:45:08 +00:00
|
|
|
'#toplevel_page_woocommerce > ul > li:nth-child(2) > a',
|
2021-11-25 18:16:17 +00:00
|
|
|
'Home',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'Orders',
|
2021-11-26 16:45:08 +00:00
|
|
|
'#toplevel_page_woocommerce > ul > li:nth-child(3) > a',
|
2021-11-25 18:16:17 +00:00
|
|
|
'Orders',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'Reports',
|
2021-11-26 16:45:08 +00:00
|
|
|
'#toplevel_page_woocommerce > ul > li:nth-child(6) > a',
|
2021-11-25 18:16:17 +00:00
|
|
|
'Orders',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'Settings',
|
2021-11-26 16:45:08 +00:00
|
|
|
'#toplevel_page_woocommerce > ul > li:nth-child(7) > a',
|
2021-11-25 18:16:17 +00:00
|
|
|
'General',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'Status',
|
2021-11-26 16:45:08 +00:00
|
|
|
'#toplevel_page_woocommerce > ul > li:nth-child(8) > a',
|
2021-11-25 18:16:17 +00:00
|
|
|
'System status',
|
|
|
|
],
|
|
|
|
// [ 'Extensions', '#toplevel_page_woocommerce > ul > li:nth-child(9)', 'Extensions' ],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'Products',
|
|
|
|
'#adminmenu > li:nth-child(9) > a',
|
|
|
|
[
|
|
|
|
[
|
|
|
|
'All Products',
|
2021-11-26 16:45:08 +00:00
|
|
|
'#menu-posts-product > ul > li:nth-child(2) > a',
|
2021-11-25 18:16:17 +00:00
|
|
|
'Products',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'Add New',
|
2021-11-26 16:45:08 +00:00
|
|
|
'#menu-posts-product > ul > li:nth-child(3) > a',
|
2021-11-25 18:16:17 +00:00
|
|
|
'Add New',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'Categories',
|
2021-11-26 16:45:08 +00:00
|
|
|
'#menu-posts-product > ul > li:nth-child(4) > a',
|
2021-11-25 18:16:17 +00:00
|
|
|
'Product categories',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'Product tags',
|
2021-11-26 16:45:08 +00:00
|
|
|
'#menu-posts-product > ul > li:nth-child(5) > a',
|
2021-11-25 18:16:17 +00:00
|
|
|
'Product tags',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'Attributes',
|
2021-11-26 16:45:08 +00:00
|
|
|
'#menu-posts-product > ul > li:nth-child(6) > a',
|
2021-11-25 18:16:17 +00:00
|
|
|
'Attributes',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'Marketing',
|
|
|
|
'#adminmenu > li:nth-child(11) > a',
|
|
|
|
[
|
|
|
|
[
|
|
|
|
'Overview',
|
2021-11-26 16:45:08 +00:00
|
|
|
'#toplevel_page_woocommerce-marketing > ul > li:nth-child(2) > a',
|
2021-11-25 18:16:17 +00:00
|
|
|
'Overview',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'Coupons',
|
2021-11-26 16:45:08 +00:00
|
|
|
'#toplevel_page_woocommerce-marketing > ul > li:nth-child(3) > a',
|
2021-11-25 18:16:17 +00:00
|
|
|
'Coupons',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
];
|