feat: Add Help to main navigation (no submenu bar)
- Added Help item to NavigationRegistry::get_base_tree - Empty children array means no submenu bar displayed - Incremented NAV_VERSION to 1.0.9 to trigger cache rebuild - Help icon: help-circle
This commit is contained in:
@@ -13,7 +13,7 @@ if ( ! defined('ABSPATH') ) exit;
|
||||
*/
|
||||
class NavigationRegistry {
|
||||
const NAV_OPTION = 'wnw_nav_tree';
|
||||
const NAV_VERSION = '1.0.8'; // Added Modules to Settings menu
|
||||
const NAV_VERSION = '1.0.9'; // Added Help menu
|
||||
|
||||
/**
|
||||
* Initialize hooks
|
||||
@@ -186,6 +186,13 @@ class NavigationRegistry {
|
||||
'icon' => 'settings',
|
||||
'children' => self::get_settings_children(),
|
||||
],
|
||||
[
|
||||
'key' => 'help',
|
||||
'label' => __('Help', 'woonoow'),
|
||||
'path' => '/help',
|
||||
'icon' => 'help-circle',
|
||||
'children' => [], // Empty array = no submenu bar
|
||||
],
|
||||
];
|
||||
|
||||
return $tree;
|
||||
|
||||
Reference in New Issue
Block a user