WC_Widget_Brand_Thumbnails::__construct()publicWC 1.0

Constructor

Method of the class: WC_Widget_Brand_Thumbnails{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WC_Widget_Brand_Thumbnails::__construct() code WC 9.5.1

public function __construct() {

	/* Widget variable settings. */
	$this->woo_widget_name        = __( 'WooCommerce Brand Thumbnails', 'woocommerce' );
	$this->woo_widget_description = __( 'Show a grid of brand thumbnails.', 'woocommerce' );
	$this->woo_widget_idbase      = 'wc_brands_brand_thumbnails';
	$this->woo_widget_cssclass    = 'widget_brand_thumbnails';

	/* Widget settings. */
	$widget_ops = array(
		'classname'   => $this->woo_widget_cssclass,
		'description' => $this->woo_widget_description,
	);

	/* Create the widget. */
	parent::__construct( $this->woo_widget_idbase, $this->woo_widget_name, $widget_ops );
}