public function wcva_register_scripts()
 {
     wp_register_script('wcva-meta', '' . wcva_PLUGIN_URL . 'js/wcva-meta.js');
     wp_register_script('jquery.accordion', '' . wcva_PLUGIN_URL . 'js/jquery.accordion.js');
     wp_register_style('wcva-meta', '' . wcva_PLUGIN_URL . 'css/wcva-meta.css');
     wp_register_style('jquery.accordion', '' . wcva_PLUGIN_URL . 'css/jquery.accordion.css');
     wp_register_style('example-styles', '' . wcva_PLUGIN_URL . 'css/example-styles.css');
     $translation_array = array('uploadimage' => __('Choose an image', 'wcva'), 'useimage' => __('Use Image', 'wcva'), 'placeholder' => wedd_placeholder_img_src());
     wp_localize_script('wcva-meta', 'wcvameta', $translation_array);
 }
 public function term_column($columns, $column, $id)
 {
     if ($column == 'thumb') {
         $image = '';
         $thumbnail_id = get_woocommerce_term_meta($id, 'thumbnail_id', true);
         $color = get_woocommerce_term_meta($id, 'color', true);
         if ($thumbnail_id) {
             $image = wp_get_attachment_thumb_url($thumbnail_id);
         } else {
             $image = wedd_placeholder_img_src();
         }
         $display_type = get_woocommerce_term_meta($id, 'display_type', true);
         if (isset($display_type)) {
             switch ($display_type) {
                 case "Color":
                     $columns .= '<div style="background-color:' . $color . '; width:32px; height:32px;"></div>';
                     break;
                 case "Image":
                     $columns .= '<img src="' . esc_url($image) . '" alt="Thumbnail" class="wp-post-image" height="32" width="32" />';
                     break;
             }
         }
     }
     return $columns;
 }