Skip extensions in navigation flyout menu (https://github.com/woocommerce/woocommerce-admin/pull/6278)
* Skip extensions in navigation flyout menu * Check if menuId is set
This commit is contained in:
parent
50304d683c
commit
eabcb877c4
|
@ -294,6 +294,11 @@ class CoreMenu {
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach( $top_level_items as $item ) {
|
foreach( $top_level_items as $item ) {
|
||||||
|
// Skip extensions.
|
||||||
|
if ( ! isset( $item['menuId'] ) || $item['menuId'] === 'plugins' ) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Skip specific categories.
|
// Skip specific categories.
|
||||||
if (
|
if (
|
||||||
in_array(
|
in_array(
|
||||||
|
|
Loading…
Reference in New Issue