WC_Widget_Rating_Filter::__construct()publicWC 1.0

Constructor.

Method of the class: WC_Widget_Rating_Filter{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Widget_Rating_Filter = new WC_Widget_Rating_Filter();
$WC_Widget_Rating_Filter->__construct();

WC_Widget_Rating_Filter::__construct() code WC 9.4.2

public function __construct() {
	$this->widget_cssclass    = 'woocommerce widget_rating_filter';
	$this->widget_description = __( 'Display a list of star ratings to filter products in your store.', 'woocommerce' );
	$this->widget_id          = 'woocommerce_rating_filter';
	$this->widget_name        = __( 'Filter Products by Rating', 'woocommerce' );
	$this->settings           = array(
		'title' => array(
			'type'  => 'text',
			'std'   => __( 'Average rating', 'woocommerce' ),
			'label' => __( 'Title', 'woocommerce' ),
		),
	);
	parent::__construct();
}