This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Display global groups according to attribute or taxonomy | |
*/ | |
function prefix_filter_global_categories_taxonomy( $args, $group_id, $group, $rule ) { | |
// Return the slug of the taxonomy you wish to use instead of product category | |
return 'pa_colour'; | |
} | |
add_filter( 'pewc_filter_global_categories_taxonomy','prefix_filter_global_categories_taxonomy', 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment