Taxonomy: Client Types
if ( ! function_exists( 'tax_client_type' ) ) {
// Register Custom Taxonomy
function tax_client_type() {
$labels = array(
'name' => _x( 'Client Types', 'Taxonomy General Name', 'blacksun-child' ),
'singular_name' => _x( 'Client Type', 'Taxonomy Singular Name', 'blacksun-child' ),
'menu_name' => __( 'Client Types', 'blacksun-child' ),
'all_items' => __( 'All Client Types', 'blacksun-child' ),
'parent_item' => __( 'Parent Client Type', 'blacksun-child' ),
'parent_item_colon' => __( 'Parent Client Type:', 'blacksun-child' ),
'new_item_name' => __( 'New Client Type', 'blacksun-child' ),
'add_new_item' => __( 'Add Client Type', 'blacksun-child' ),
'edit_item' => __( 'Edit Client Type', 'blacksun-child' ),
'update_item' => __( 'Update Client Type', 'blacksun-child' ),
'view_item' => __( 'View Client Type', 'blacksun-child' ),
'separate_items_with_commas' => __( 'Separate Client Types with commas', 'blacksun-child' ),
'add_or_remove_items' => __( 'Add or remove Client Types', 'blacksun-child' ),
'choose_from_most_used' => __( 'Choose from the most used Client Types', 'blacksun-child' ),
'popular_items' => __( 'Popular Client Types', 'blacksun-child' ),
'search_items' => __( 'Search Client Types', 'blacksun-child' ),
'not_found' => __( 'Not Found', 'blacksun-child' ),
'no_terms' => __( 'No Client Types', 'blacksun-child' ),
'items_list' => __( 'Client Types list', 'blacksun-child' ),
'items_list_navigation' => __( 'Client Type list navigation', 'blacksun-child' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
'show_in_rest' => false,
);
register_taxonomy( 'client_type', array( 'client' ), $args );
}
add_action( 'init', 'tax_client_type', 0 );
}