Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Employee Functions

// Register Custom Taxonomy
function eid_em_func() {

	$labels = array(
		'name'                       => _x( 'Functions', 'Taxonomy General Name', 'eid_em' ),
		'singular_name'              => _x( 'Function', 'Taxonomy Singular Name', 'eid_em' ),
		'menu_name'                  => __( 'functions', 'eid_em' ),
		'all_items'                  => __( 'All Functions', 'eid_em' ),
		'parent_item'                => __( 'Parent Function', 'eid_em' ),
		'parent_item_colon'          => __( 'Parent Function:', 'eid_em' ),
		'new_item_name'              => __( 'New Function', 'eid_em' ),
		'add_new_item'               => __( 'Add New Function', 'eid_em' ),
		'edit_item'                  => __( 'Edit Function', 'eid_em' ),
		'update_item'                => __( 'Update Function', 'eid_em' ),
		'view_item'                  => __( 'View Function', 'eid_em' ),
		'separate_items_with_commas' => __( 'Separate ifunctions with commas', 'eid_em' ),
		'add_or_remove_items'        => __( 'Add or remove functions', 'eid_em' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'eid_em' ),
		'popular_items'              => __( 'Popular Functions', 'eid_em' ),
		'search_items'               => __( 'Search Functions', 'eid_em' ),
		'not_found'                  => __( 'Not Found', 'eid_em' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => false,
		'show_tagcloud'              => false,
	);
	register_taxonomy( 'eid_em_func', array( 'eid_em_employees' ), $args );

}

// Hook into the 'init' action
add_action( 'init', 'eid_em_func', 0 );