term_id, "_miravia_attr", sanitize_text_field($_POST['attr'])); } $miravia_category = get_term_meta($category->term_id, '_miravia_category', true); $token = MiraviaCore::get_miravia_account_default(); if($token) { $token = $token['token']; }else{ die('Error: Account is not ready'); } $link = new MiraviaCategory($token); $attributes = $link->getAttributes($miravia_category); $default_attributes = get_term_meta($category->term_id, "_miravia_attr", true); $attributes_woocommerce = wp_list_pluck( wc_get_attribute_taxonomies(), 'attribute_label', 'attribute_name' ); ?>