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;
|
||||
}
|
||||
|
||||
&.woocommerce_page_wc-settings,
|
||||
&.woocommerce_page_wc-status {
|
||||
.woo-nav-tab-wrapper {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.woocommerce .subsubsub {
|
||||
font-size: 14px;
|
||||
margin: 5px 0;
|
||||
}
|
||||
}
|
||||
|
||||
#wpcontent,
|
||||
#wpfooter {
|
||||
margin-left: $navigation-width;
|
||||
|
|
|
@ -187,6 +187,7 @@ class CoreMenu {
|
|||
'capability' => 'manage_woocommerce',
|
||||
'id' => 'system-status',
|
||||
'url' => 'wc-status',
|
||||
'order' => 20,
|
||||
),
|
||||
array(
|
||||
'parent' => 'tools',
|
||||
|
@ -195,6 +196,7 @@ class CoreMenu {
|
|||
'id' => 'import-export',
|
||||
'url' => 'import.php',
|
||||
'migrate' => false,
|
||||
'order' => 10,
|
||||
),
|
||||
array(
|
||||
'parent' => 'tools',
|
||||
|
@ -202,6 +204,23 @@ class CoreMenu {
|
|||
'capability' => 'manage_woocommerce',
|
||||
'id' => 'utilities',
|
||||
'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.
|
||||
|
|
Loading…
Reference in New Issue