WC_Widget_Brand_Nav::__construct
Constructor
Method of the class: WC_Widget_Brand_Nav{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Widget_Brand_Nav = new WC_Widget_Brand_Nav(); $WC_Widget_Brand_Nav->__construct();
WC_Widget_Brand_Nav::__construct() WC Widget Brand Nav:: construct code WC 10.4.3
public function __construct() {
/* Widget variable settings. */
$this->widget_cssclass = 'woocommerce widget_brand_nav widget_layered_nav';
$this->widget_description = __( 'Shows brands in a widget which lets you narrow down the list of products when viewing products.', 'woocommerce' );
$this->widget_id = 'woocommerce_brand_nav';
$this->widget_name = __( 'WooCommerce Brand Layered Nav', 'woocommerce' );
add_filter( 'woocommerce_product_subcategories_args', array( $this, 'filter_out_cats' ) );
/* Create the widget. */
parent::__construct();
}