public function woocommerce_product_attribute_column($columns, $column, $id) { if ($column == $this->meta_key) { $swatch_term = new WC_Swatch_Term($this->meta_key, $id, $this->taxonomy, false, $this->image_size); $columns .= $swatch_term->get_output(); } return $columns; }