project status
if ( ! function_exists( 'project_status' ) ) {
// Register Custom Taxonomy
function project_status() {
$labels = array(
'name' => _x( 'Project Status', 'Taxonomy General Name', 'shaktiparmar' ),
'singular_name' => _x( 'Project Status', 'Taxonomy Singular Name', 'shaktiparmar' ),
'menu_name' => __( 'Status', 'shaktiparmar' ),
'all_items' => __( 'All Status', 'shaktiparmar' ),
'parent_item' => __( 'Parent Status', 'shaktiparmar' ),
'parent_item_colon' => __( 'Parent Status:', 'shaktiparmar' ),
'new_item_name' => __( 'New Status Name', 'shaktiparmar' ),
'add_new_item' => __( 'Add New Status', 'shaktiparmar' ),
'edit_item' => __( 'Edit Status', 'shaktiparmar' ),
'update_item' => __( 'Update Status', 'shaktiparmar' ),
'view_item' => __( 'View Status', 'shaktiparmar' ),
'separate_items_with_commas' => __( 'Separate Status with commas', 'shaktiparmar' ),
'add_or_remove_items' => __( 'Add or remove Status', 'shaktiparmar' ),
'choose_from_most_used' => __( 'Choose from the most used', 'shaktiparmar' ),
'popular_items' => __( 'Popular Status', 'shaktiparmar' ),
'search_items' => __( 'Search Status', 'shaktiparmar' ),
'not_found' => __( 'Not Found', 'shaktiparmar' ),
'no_terms' => __( 'No Status', 'shaktiparmar' ),
'items_list' => __( 'Status list', 'shaktiparmar' ),
'items_list_navigation' => __( 'Status list navigation', 'shaktiparmar' ),
);
$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( 'project_status', array( 'project' ), $args );
}
add_action( 'init', 'project_status', 0 );
}