WC_Widget_Recently_Viewed::__construct() public WC 1.0
Constructor.
{} Это метод класса: WC_Widget_Recently_Viewed{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$WC_Widget_Recently_Viewed = new WC_Widget_Recently_Viewed(); $WC_Widget_Recently_Viewed->__construct();
Код WC_Widget_Recently_Viewed::__construct() WC Widget Recently Viewed:: construct WC 5.0.0
public function __construct() {
$this->widget_cssclass = 'woocommerce widget_recently_viewed_products';
$this->widget_description = __( "Display a list of a customer's recently viewed products.", 'woocommerce' );
$this->widget_id = 'woocommerce_recently_viewed_products';
$this->widget_name = __( 'Recent Viewed Products', 'woocommerce' );
$this->settings = array(
'title' => array(
'type' => 'text',
'std' => __( 'Recently Viewed Products', 'woocommerce' ),
'label' => __( 'Title', 'woocommerce' ),
),
'number' => array(
'type' => 'number',
'step' => 1,
'min' => 1,
'max' => 15,
'std' => 10,
'label' => __( 'Number of products to show', 'woocommerce' ),
),
);
parent::__construct();
}