🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-07 01:40:54 | PHP 8.2.32
📂
/ (Root)
/
home
/
eliteewa
/
public_html
/
wp-content
/
themes
/
blocksy
/
inc
/
classes
/
db-versioning
📍 /home/eliteewa/public_html/wp-content/themes/blocksy/inc/classes/db-versioning
🔄 Refresh
✏️
Editing: v2-0-34.php
Writable
<?php namespace Blocksy\DbVersioning; class V2034 { public function migrate() { if (! function_exists('wc_get_attribute_taxonomies')) { return; } foreach (array_values(wc_get_attribute_taxonomies()) as $tax) { $taxonomy = (array) $tax; $meta = blocksy_get_taxonomy_options($taxonomy['attribute_id']); if ( $meta && isset($meta['swatch_type']) && $taxonomy['attribute_type'] !== $meta['swatch_type'] ) { wc_update_attribute( $taxonomy['attribute_id'], [ 'name' => $taxonomy['attribute_label'], 'slug' => $taxonomy['attribute_name'], 'type' => $meta['swatch_type'], 'order_by' => $taxonomy['attribute_orderby'], 'has_archives' => $taxonomy['attribute_public'] ] ); } } } }
💾 Save Changes
❌ Cancel