widget_cssclass = 'woocommerce widget_product_tag_cloud'; $this->widget_description = __( 'Your most used product tags in cloud format.', 'woocommerce' ); $this->widget_id = 'woocommerce_product_tag_cloud'; $this->widget_name = __( 'WooCommerce product tags', 'woocommerce' ); $this->settings = array( 'title' => array( 'type' => 'text', 'std' => __( 'Product tags', 'woocommerce' ), 'label' => __( 'Title', 'woocommerce' ), ), ); parent::__construct(); } /** * Output widget. * * @see WP_Widget * * @param array $args * @param array $instance */ public function widget( $args, $instance ) { $current_taxonomy = $this->_get_current_taxonomy( $instance ); if ( empty( $instance['title'] ) ) { $taxonomy = get_taxonomy( $current_taxonomy ); $instance['title'] = $taxonomy->labels->name; } $this->widget_start( $args, $instance ); echo '