doc_tax
// Register Custom Taxonomy
function documents_tax() {
$labels = array(
'name' => _x( 'Docs', 'Taxonomy General Name', 'doc' ),
'singular_name' => _x( 'Doc', 'Taxonomy Singular Name', 'doc' ),
'menu_name' => __( 'HR Docs', 'doc' ),
'all_items' => __( 'All Docs', 'doc' ),
'parent_item' => __( 'Parent Doc', 'doc' ),
'parent_item_colon' => __( 'Parent Doc:', 'doc' ),
'new_item_name' => __( 'New Doc Name', 'doc' ),
'add_new_item' => __( 'Add New Doc', 'doc' ),
'edit_item' => __( 'Edit Doc', 'doc' ),
'update_item' => __( 'Update Doc', 'doc' ),
'view_item' => __( 'View Doc', 'doc' ),
'separate_items_with_commas' => __( 'Separate Docs with commas', 'doc' ),
'add_or_remove_items' => __( 'Add or remove Docs', 'doc' ),
'choose_from_most_used' => __( 'Choose from the most used', 'doc' ),
'popular_items' => __( 'Popular Docs', 'doc' ),
'search_items' => __( 'Search Docs', 'doc' ),
'not_found' => __( 'Not Found', 'doc' ),
'no_terms' => __( 'No Docs', 'doc' ),
'items_list' => __( 'Docs list', 'doc' ),
'items_list_navigation' => __( 'Docs list navigation', 'doc' ),
);
$rewrite = array(
'slug' => 'human-resources/document',
'with_front' => false,
'hierarchical' => true,
);
$capabilities = array(
'manage_terms' => 'edit_human_resourcess',
'edit_terms' => 'edit_human_resourcess',
'delete_terms' => 'delete_human_resourcess',
'assign_terms' => 'publish_human_resourcess',
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => false,
'query_var' => 'hr_docs',
'rewrite' => $rewrite,
'capabilities' => $capabilities,
);
register_taxonomy( 'hr_docs', array( 'human_resources' ), $args );
}
add_action( 'init', 'documents_tax', 0 );