get_wpgmapembed_data(intval($gmap_embed_admin_map_id)); $gmap_embed_admin_single_map = json_decode($gmap_embed_admin_gmap_data); // Hardening: Ensure $gmap_embed_admin_single_map is a valid object and properties exist before access if (!$gmap_embed_admin_single_map || !is_object($gmap_embed_admin_single_map)) { wp_die(esc_html__('Failed to load map data. The data may be corrupted.', 'gmap-embed')); } // Ensure center lat/lng property exists before explode $gmap_embed_admin_center_lat_lng = isset($gmap_embed_admin_single_map->wpgmap_center_lat_lng) ? $gmap_embed_admin_single_map->wpgmap_center_lat_lng : '0,0'; list($gmap_embed_admin_center_lat, $gmap_embed_admin_center_lng) = explode(',', esc_html($gmap_embed_admin_center_lat_lng)); ?>
|
wpgmap_show_heading == 1) ? 'checked' : ''); ?>> |
|
|
|
|
|
|
|
|
|
|
|
|
|
name="wpgmap_enable_direction"
id="wpgmap_enable_direction" wpgmap_enable_direction == 1) ? 'checked' : ''); ?>>
name="wpgmap_enable_modern_direction"
id="wpgmap_enable_modern_direction" wpgmap_enable_modern_direction) && $gmap_embed_admin_single_map->wpgmap_enable_modern_direction == 1) ? 'checked' : ''); ?>>
|
|
Unlock unlimited custom themes by Pro version |
|
|