feat: Add Trainer Login link to admin sidebar menu

- Add a direct link to the Trainer Login page under HVAC Community Events menu
- Link directly to the community-login frontend page
- Maintain consistent positioning in the menu structure

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
bengizmo 2025-05-19 17:40:23 -03:00
parent 6974385990
commit 7d74938ab9

View file

@ -44,6 +44,17 @@ class HVAC_Settings {
'hvac-ce-dashboard', 'hvac-ce-dashboard',
array($this, 'dashboard_page') array($this, 'dashboard_page')
); );
// Add trainer login link submenu
$community_login_url = home_url('community-login');
add_submenu_page(
'hvac-community-events',
__('Trainer Login', 'hvac-ce'),
__('Trainer Login', 'hvac-ce'),
'manage_options',
$community_login_url,
null
);
} }
public function register_settings() { public function register_settings() {