$url = 'https://virtueit.com.au/wp-content/uploads/oxygen-header-export.json'; $resp = wp_remote_get($url, ['sslverify' => false, 'timeout' => 60]); if (is_wp_error($resp)) return 'download error: ' . $resp->get_error_message(); $json = wp_remote_retrieve_body($resp); $export = json_decode($json, true); if (!$export) return 'json decode failed'; $post_id = wp_insert_post([ 'post_type' => $export['post_type'], 'post_title' => $export['post_title'], 'post_name' => $export['post_name'], 'post_status' => $export['post_status'], 'post_author' => get_current_user_id() ?: 1 ]); if (is_wp_error($post_id)) return 'insert failed: ' . $post_id->get_error_message(); foreach ($export['meta'] as $key => $value) { update_post_meta($post_id, $key, $value); } // Merge the exported selectors into the existing global selectors $current = Breakdance\Data\get_global_option('oxy_selectors_json_string') ?: []; $by_id = []; foreach ($current as $s) $by_id[$s['id']] = $s; foreach ($export['selectors'] as $s) $by_id[$s['id']] = $s; $merged = array_values($by_id); Breakdance\Data\set_global_option('oxy_selectors_json_string', $merged); breakdance\breakdanceoxygen\selectors\getOxySelectors(true); if (function_exists('Breakdance\Render\generateCacheForGlobalSettings')) { Breakdance\Render\generateCacheForGlobalSettings(); } wp_cache_flush(); do_action('litespeed_purge_all'); if (class_exists('LiteSpeed_Cache_API')) LiteSpeed_Cache_API::purge_all(); return 'Header imported with post ID ' . $post_id;

Our store is getting a much needed revamp, apoligies for the inconvieniance,
Visit our main site and contact us for parts or orders.