Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save truongluu/92299427bb6e221368fd4a6f010ea1ba to your computer and use it in GitHub Desktop.
Save truongluu/92299427bb6e221368fd4a6f010ea1ba to your computer and use it in GitHub Desktop.
Woocommerce - Sortable custom taxonomy
<?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