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

'training_audience', 'hide_empty' => false]); $current_audience_terms = get_the_terms($profile->ID, 'training_audience'); $current_audience_names = $current_audience_terms && !is_wp_error($current_audience_terms) ? wp_list_pluck($current_audience_terms, 'name') : []; if (!is_wp_error($audience_terms) && !empty($audience_terms)) { foreach ($audience_terms as $term) { printf( '', esc_attr($term->name), checked(in_array($term->name, $current_audience_names), true, false), esc_html($term->name) ); } } ?>
'training_formats', 'hide_empty' => false]); $current_format_terms = get_the_terms($profile->ID, 'training_formats'); $current_format_names = $current_format_terms && !is_wp_error($current_format_terms) ? wp_list_pluck($current_format_terms, 'name') : []; if (!is_wp_error($format_terms) && !empty($format_terms)) { foreach ($format_terms as $term) { printf( '', esc_attr($term->name), checked(in_array($term->name, $current_format_names), true, false), esc_html($term->name) ); } } ?>
'training_locations', 'hide_empty' => false]); $current_location_terms = get_the_terms($profile->ID, 'training_locations'); $current_location_names = $current_location_terms && !is_wp_error($current_location_terms) ? wp_list_pluck($current_location_terms, 'name') : []; if (!is_wp_error($location_terms) && !empty($location_terms)) { foreach ($location_terms as $term) { printf( '', esc_attr($term->name), checked(in_array($term->name, $current_location_names), true, false), esc_html($term->name) ); } } ?>
'training_resources', 'hide_empty' => false]); $current_resource_terms = get_the_terms($profile->ID, 'training_resources'); $current_resource_names = $current_resource_terms && !is_wp_error($current_resource_terms) ? wp_list_pluck($current_resource_terms, 'name') : []; if (!is_wp_error($resource_terms) && !empty($resource_terms)) { foreach ($resource_terms as $term) { printf( '', esc_attr($term->name), checked(in_array($term->name, $current_resource_names), true, false), esc_html($term->name) ); } } ?>

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