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