WC_Widget_Recently_Viewed::__construct()
Constructor.
Description Description
Source Source
File: includes/widgets/class-wc-widget-recently-viewed.php
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();
}