WC_Widget_Recently_Viewed::__construct()publicWC 1.0

Constructor.

Method of the class: WC_Widget_Recently_Viewed{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WC_Widget_Recently_Viewed::__construct() code WC 8.7.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        = __( 'Recently Viewed Products list', '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();
}