WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Widget_Top_Rated_Products::__construct() public WC 1.0

Constructor.

Это метод класса: WC_Widget_Top_Rated_Products{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

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

Код WC_Widget_Top_Rated_Products::__construct() WC 4.5.2

woocommerce/includes/widgets/class-wc-widget-top-rated-products.php
<?php
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', '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();
}