Skip to content

Instantly share code, notes, and snippets.

@WPprodigy
Created April 12, 2016 23:36
Show Gist options
  • Save WPprodigy/d8f3f6468166d994e4233734f19c7fe0 to your computer and use it in GitHub Desktop.
Save WPprodigy/d8f3f6468166d994e4233734f19c7fe0 to your computer and use it in GitHub Desktop.
Make product brands sortable
add_filter( 'woocommerce_sortable_taxonomies','wt_sort_brands' );
function wt_sort_brands( $sortable ) {
$sortable[] = 'product_brand';
return $sortable;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment