/* Exclude WC Product Categories */

add_filter( 'woocommerce_product_categories_widget_args', 'woo_product_cat_widget_args' );
function woo_product_cat_widget_args( $cat_args ) {

$cat_args['exclude'] = array('ID','ID');

return $cat_args;

}