From f49dde94845488e56c6fa048fefb19c04cbd89cb Mon Sep 17 00:00:00 2001 From: Dwindi Ramadhana Date: Sun, 4 Jan 2026 12:01:18 +0700 Subject: [PATCH] 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 --- includes/Compat/NavigationRegistry.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/includes/Compat/NavigationRegistry.php b/includes/Compat/NavigationRegistry.php index 0e60760..f378916 100644 --- a/includes/Compat/NavigationRegistry.php +++ b/includes/Compat/NavigationRegistry.php @@ -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;