Hiding primary tabs on Settings within WooCommerce since it's redundant with items in nav (https://github.com/woocommerce/woocommerce-admin/pull/5630)
* Hiding tabs displayed on wc-status pages as well
This commit is contained in:
parent
ad78576cf4
commit
4e5fa5cee9
|
@ -11,6 +11,18 @@
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.woocommerce_page_wc-settings,
|
||||||
|
&.woocommerce_page_wc-status {
|
||||||
|
.woo-nav-tab-wrapper {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.woocommerce .subsubsub {
|
||||||
|
font-size: 14px;
|
||||||
|
margin: 5px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#wpcontent,
|
#wpcontent,
|
||||||
#wpfooter {
|
#wpfooter {
|
||||||
margin-left: $navigation-width;
|
margin-left: $navigation-width;
|
||||||
|
|
|
@ -187,6 +187,7 @@ class CoreMenu {
|
||||||
'capability' => 'manage_woocommerce',
|
'capability' => 'manage_woocommerce',
|
||||||
'id' => 'system-status',
|
'id' => 'system-status',
|
||||||
'url' => 'wc-status',
|
'url' => 'wc-status',
|
||||||
|
'order' => 20,
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'parent' => 'tools',
|
'parent' => 'tools',
|
||||||
|
@ -195,6 +196,7 @@ class CoreMenu {
|
||||||
'id' => 'import-export',
|
'id' => 'import-export',
|
||||||
'url' => 'import.php',
|
'url' => 'import.php',
|
||||||
'migrate' => false,
|
'migrate' => false,
|
||||||
|
'order' => 10,
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'parent' => 'tools',
|
'parent' => 'tools',
|
||||||
|
@ -202,6 +204,23 @@ class CoreMenu {
|
||||||
'capability' => 'manage_woocommerce',
|
'capability' => 'manage_woocommerce',
|
||||||
'id' => 'utilities',
|
'id' => 'utilities',
|
||||||
'url' => 'admin.php?page=wc-status&tab=tools',
|
'url' => 'admin.php?page=wc-status&tab=tools',
|
||||||
|
'order' => 30,
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'parent' => 'tools',
|
||||||
|
'title' => __( 'Logs', 'woocommerce-admin' ),
|
||||||
|
'capability' => 'manage_woocommerce',
|
||||||
|
'id' => 'logs',
|
||||||
|
'url' => 'admin.php?page=wc-status&tab=logs',
|
||||||
|
'order' => 40,
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'parent' => 'tools',
|
||||||
|
'title' => __( 'Scheduled Actions', 'woocommerce-admin' ),
|
||||||
|
'capability' => 'manage_woocommerce',
|
||||||
|
'id' => 'scheduled_actions',
|
||||||
|
'url' => 'admin.php?page=wc-status&tab=action-scheduler',
|
||||||
|
'order' => 50,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// WooCommerce Admin items.
|
// WooCommerce Admin items.
|
||||||
|
|
Loading…
Reference in New Issue