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:
parent
6974385990
commit
7d74938ab9
1 changed files with 11 additions and 0 deletions
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue