Skip to content

Instantly share code, notes, and snippets.

View themarcusbattle's full-sized avatar

Marcus Battle themarcusbattle

View GitHub Profile
@joelstransky
joelstransky / functions::taxonomies.php
Created August 22, 2017 21:18
A working sort for taxonomy terms + numeric meta data
<?php
register_taxonomy( 'uh_service_type_taxonomy', array( 'contact_cpt' ), $args );
// add and 'Order' column to Service Type taxonomy terms
add_filter("manage_edit-uh_service_type_taxonomy_columns", "on_manage_edit_uh_service_type_taxonomy_columns");
function on_manage_edit_uh_service_type_taxonomy_columns( $columns ) {
$columns['term_order'] = __('Order');
return $columns;
}