Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Tract Role

// Register Custom Taxonomy
function tract_role_tax() {

	$labels = array(
		'name'                       => _x( 'Roles', 'Taxonomy General Name', 'tract' ),
		'singular_name'              => _x( 'Role', 'Taxonomy Singular Name', 'tract' ),
		'menu_name'                  => __( 'Role', 'tract' ),
		'all_items'                  => __( 'All Roles', 'tract' ),
		'parent_item'                => __( 'Parent Role', 'tract' ),
		'parent_item_colon'          => __( 'Parent Role:', 'tract' ),
		'new_item_name'              => __( 'New Role Name', 'tract' ),
		'add_new_item'               => __( 'Add New Role', 'tract' ),
		'edit_item'                  => __( 'Edit Role', 'tract' ),
		'update_item'                => __( 'Update Role', 'tract' ),
		'view_item'                  => __( 'View Role', 'tract' ),
		'separate_items_with_commas' => __( 'Separate items with commas', 'tract' ),
		'add_or_remove_items'        => __( 'Add or remove items', 'tract' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'tract' ),
		'popular_items'              => __( 'Popular Items', 'tract' ),
		'search_items'               => __( 'Search Items', 'tract' ),
		'not_found'                  => __( 'Not Found', 'tract' ),
		'no_terms'                   => __( 'No items', 'tract' ),
		'items_list'                 => __( 'Items list', 'tract' ),
		'items_list_navigation'      => __( 'Items list navigation', 'tract' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'role', array( 'experts_exchange' ), $args );

}
add_action( 'init', 'tract_role_tax', 0 );