Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* 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