Created
August 21, 2010 17:21
-
-
Save sproutventure/542589 to your computer and use it in GitHub Desktop.
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
function custom_taxes() | |
{ | |
// Taxonomies | |
$universe_labels = array( | |
'name' => _x( 'Nexus', 'taxonomy general name' ), | |
'singular_name' => _x( 'Affiliate', 'taxonomy singular name' ), | |
'search_items' => __( 'Search Affiliations' ), | |
'all_items' => __( 'All Affiliates' ), | |
'parent_item' => __( 'Parent Affiliate' ), | |
'parent_item_colon' => __( 'Parent Affiliate:' ), | |
'edit_item' => __( 'Edit Affiliate' ), | |
'update_item' => __( 'Update Affiliate' ), | |
'add_new_item' => __( 'Add New Affiliate' ), | |
'new_item_name' => __( 'New Affiliate' ), | |
'choose_from_most_used' => __( 'Choose from existing Affiliates' ), | |
); | |
register_taxonomy( 'nexus', array( 'page', 'post' ), array( 'hierarchical' => true, 'public' => true, 'query_var' => true, 'rewrite' => true, 'labels' => $universe_labels ) ); | |
} | |
add_action('init', 'custom_taxes'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment