Snippets: Custom columns for specific WooCommerce category

// Custom columns for specific WooCommerce category
add_filter( 'loop_shop_columns', function( $columns ) {
	if ( is_tax( 'product_cat', 'courses' ) ) {
		$columns = 2;
	}
	return $columns;
}, 99 );
All PHP snippets should be added via a child theme's functions.php file.