From 7d74938ab925d755705c26395248551fe4237013 Mon Sep 17 00:00:00 2001 From: bengizmo Date: Mon, 19 May 2025 17:40:23 -0300 Subject: [PATCH] feat: Add Trainer Login link to admin sidebar menu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .../includes/class-hvac-settings.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events/includes/class-hvac-settings.php b/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events/includes/class-hvac-settings.php index 7ce4b0cc..d696544b 100644 --- a/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events/includes/class-hvac-settings.php +++ b/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events/includes/class-hvac-settings.php @@ -44,6 +44,17 @@ class HVAC_Settings { 'hvac-ce-dashboard', 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() {