WC_Widget_Brand_Description::__construct()publicWC 1.0

Constructor

Method of the class: WC_Widget_Brand_Description{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WC_Widget_Brand_Description::__construct() code WC 9.5.1

public function __construct() {

	/* Widget variable settings. */
	$this->woo_widget_name        = __( 'WooCommerce Brand Description', 'woocommerce' );
	$this->woo_widget_description = __( 'When viewing a brand archive, show the current brands description.', 'woocommerce' );
	$this->woo_widget_idbase      = 'wc_brands_brand_description';
	$this->woo_widget_cssclass    = 'widget_brand_description';

	/* 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 );
}