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 the profile to edit 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; } // Get profile metadata and user data $profile_meta = $profile_manager->get_profile_meta($profile->ID); $edit_user = get_userdata($edit_user_id); if (!$edit_user) { echo '

User not found.

'; get_footer(); return; } $current_user_id = get_current_user_id(); // Get coordinates if available $coordinates = null; $geocoding_status = ['status' => 'unknown']; if (class_exists('HVAC_Geocoding_Service')) { try { $geocoding_service = HVAC_Geocoding_Service::get_instance(); $coordinates = $geocoding_service->get_coordinates($profile->ID); $geocoding_status = $geocoding_service->get_geocoding_status($profile->ID); } catch (Exception $e) { // Silently handle geocoding errors error_log('Geocoding service error in master trainer profile edit: ' . $e->getMessage()); } } ?>
render_master_trainer_menu(); } ?> render_breadcrumbs(); } ?>

Edit Trainer Profile: display_name); ?>

Back to Dashboard ID, 'is_public_profile', true) === '1'): ?> View Public Profile
Profile Status:
Geocoding:
Last Updated: post_modified), current_time('timestamp')) . ' ago'; ?>

Profile Settings

Public profiles are visible in the trainer directory

Certification Information (Master Trainer Only)

Personal Information

Professional Information

Business Information

Location Information

Latitude:
Longitude:
Formatted Address:
Last Updated:
Cancel

Recent Profile Activity

Profile last modified by display_name); ?> post_modified), current_time('timestamp')); ?> ago
Location geocoded successfully ago