-
-
Save truongluu/92299427bb6e221368fd4a6f010ea1ba to your computer and use it in GitHub Desktop.
Woocommerce - Sortable custom taxonomy
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
<?php | |
// This is so easy, it's embarassing that I took 20 minutes to find it. | |
// "Catalog" is a custom taxonomy. | |
function make_catalog_sortable( $sortables ) { | |
$sortables[] = 'catalog'; | |
return $sortables; | |
} | |
add_filter( 'woocommerce_sortable_taxonomies', 'make_catalog_sortable' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment