Snippets: Custom Sidebar for Woo Product Categories Only

// Register new custom sidebar
add_filter( 'wpex_register_sidebars_array', function( $sidebars ) {
	$sidebars['woo_category_sidebar'] = __( 'WooCommerce Category Sidebar', 'total' );
	return $sidebars;
} );

// Show the new sidebar for categories
add_filter( 'wpex_get_sidebar', function( $sidebar ) {
	if ( is_tax( 'product_cat' ) ) {
		return 'woo_category_sidebar';
	}
	return $sidebar;
}, 100 );
All PHP snippets should be added via a child theme's functions.php file.