fix: Update HVAC plugin menu to top-level and remove backup plugins
- Changed from Settings submenu to dedicated top-level menu - Fixed Zoho admin submenu registration - Removed duplicate backup plugin directories - Added documentation for admin access instructions
This commit is contained in:
parent
fb10d5e384
commit
2e3288fddc
1 changed files with 16 additions and 3 deletions
|
|
@ -14,11 +14,24 @@ class HVAC_Settings {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function add_admin_menu() {
|
public function add_admin_menu() {
|
||||||
add_options_page(
|
// Add main menu page
|
||||||
|
add_menu_page(
|
||||||
|
__('HVAC Community Events', 'hvac-ce'),
|
||||||
__('HVAC Community Events', 'hvac-ce'),
|
__('HVAC Community Events', 'hvac-ce'),
|
||||||
__('HVAC Community', 'hvac-ce'),
|
|
||||||
'manage_options',
|
'manage_options',
|
||||||
'hvac-ce',
|
'hvac-community-events',
|
||||||
|
array($this, 'options_page'),
|
||||||
|
'dashicons-calendar-alt',
|
||||||
|
30
|
||||||
|
);
|
||||||
|
|
||||||
|
// Add settings submenu
|
||||||
|
add_submenu_page(
|
||||||
|
'hvac-community-events',
|
||||||
|
__('Settings', 'hvac-ce'),
|
||||||
|
__('Settings', 'hvac-ce'),
|
||||||
|
'manage_options',
|
||||||
|
'hvac-community-events',
|
||||||
array($this, 'options_page')
|
array($this, 'options_page')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue