matthijs166
10/16/2017 - 3:24 PM

Remove widgets woocomerce

remove all the widgets in de woocomerce plugin

//remove woocomerce widgets
add_filter( 'woocommerce_product_categories_widget_args', 'woo_product_cat_widget_args' );
function woo_product_cat_widget_args( $cat_args ) {
     unregister_widget('WC_Widget_Cart');
     unregister_widget('WC_Widget_Layered_Nav');
     unregister_widget('WC_Widget_Recently_Viewed');
     unregister_widget('WC_Widget_Top_Rated_Products');
     unregister_widget('WC_Widget_Layered_Nav_Filters');
     unregister_widget('WC_Widget_Price_Filter');
     unregister_widget('WC_Widget_Product_Categories');
     unregister_widget('WC_Widget_Product_Search');
     unregister_widget('WC_Widget_Product_Tag_Cloud');
     unregister_widget('WC_Widget_Products');
     unregister_widget('WC_Widget_Rating_Filter');
     unregister_widget('WC_Widget_Recent_Reviews');
}