Created
April 12, 2016 23:36
-
-
Save WPprodigy/d8f3f6468166d994e4233734f19c7fe0 to your computer and use it in GitHub Desktop.
Make product brands sortable
This file contains hidden or 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
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