Skip to content

Instantly share code, notes, and snippets.

@lmartins
Created September 23, 2015 18:01
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 lmartins/2f957a98ec3ec617f4dd to your computer and use it in GitHub Desktop.
Save lmartins/2f957a98ec3ec617f4dd to your computer and use it in GitHub Desktop.
Register taxonomies using Extended Taxos library https://github.com/johnbillion/extended-taxos
/**
* ============================================================================
* TAXONOMIES
* ============================================================================
*/
$args = array(
'labels' => array(
'add_new_item' => __('Add New Category', 'wip')
)
);
$labels = array(
'plural' => __('Categories', 'wip'),
'singular_name' => __('Category', 'wip'),
'slug' => 'location-categories'
);
register_extended_taxonomy( 'location_cat', 'location', $args, $labels );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment