WC_Widget_Top_Rated_Products::__construct()
Constructor.
Метод класса: WC_Widget_Top_Rated_Products{}
Хуков нет.
Возвращает
null
. Ничего (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 Widget Top Rated Products:: construct WC 9.4.2
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(); }