WC_Widget_Brand_Description::__construct
Constructor
Method of the class: WC_Widget_Brand_Description{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Widget_Brand_Description = new WC_Widget_Brand_Description(); $WC_Widget_Brand_Description->__construct();
WC_Widget_Brand_Description::__construct() WC Widget Brand Description:: construct code WC 10.3.6
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 );
}