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