Created
September 23, 2015 18:01
-
-
Save lmartins/2f957a98ec3ec617f4dd to your computer and use it in GitHub Desktop.
Register taxonomies using Extended Taxos library
https://github.com/johnbillion/extended-taxos
This file contains 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
/** | |
* ============================================================================ | |
* 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