You must be logged in to view this page.

'; get_footer(); return; } if (!current_user_can('hvac_master_trainer') && !current_user_can('administrator')) { echo '

You must be a master trainer or administrator to access this page.

'; get_footer(); return; } // Get the user ID to edit $edit_user_id = isset($_GET['user_id']) ? intval($_GET['user_id']) : 0; if (!$edit_user_id) { echo '

No user specified for editing.

'; get_footer(); return; } // Get basic user data $edit_user = get_userdata($edit_user_id); if (!$edit_user) { echo '

User not found.

'; get_footer(); return; } // Check if profile manager exists if (!class_exists('HVAC_Trainer_Profile_Manager')) { echo '

Profile management system is not available.

'; get_footer(); return; } $profile_manager = HVAC_Trainer_Profile_Manager::get_instance(); $profile = $profile_manager->get_trainer_profile($edit_user_id); if (!$profile) { echo '

No trainer profile found for this user.

'; get_footer(); return; } $profile_meta = $profile_manager->get_profile_meta($profile->ID); ?>
render_master_trainer_menu(); } ?>

Edit Trainer Profile: display_name); ?>

Basic Information

Cancel