WordPress at Your Fingertips
function is not described

WC_Widget_Top_Rated_Products::__construct() public WC 1.0

Constructor.

{} It's a method of the class: WC_Widget_Top_Rated_Products{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Widget_Top_Rated_Products::__construct() WC 5.8.0

public function __construct() {
	$this->widget_cssclass    = 'woocommerce widget_top_rated_products';
	$this->widget_description = __( "A list of your store's top-rated products.", 'woocommerce' );
	$this->widget_id          = 'woocommerce_top_rated_products';
	$this->widget_name        = __( 'Products by Rating list', 'woocommerce' );
	$this->settings           = array(
		'title'  => array(
			'type'  => 'text',
			'std'   => __( 'Top rated products', 'woocommerce' ),
			'label' => __( 'Title', 'woocommerce' ),
		),
		'number' => array(
			'type'  => 'number',
			'step'  => 1,
			'min'   => 1,
			'max'   => '',
			'std'   => 5,
			'label' => __( 'Number of products to show', 'woocommerce' ),
		),
	);

	parent::__construct();
}