Task custom post type
Used for project manager
// Register Custom Post Type function register_tasks_cpt() { $labels = array( 'name' => _x( 'Tasks', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'Task', 'Post Type Singular Name', 'text_domain' ), 'menu_name' => __( 'Task', 'text_domain' ), 'parent_item_colon' => __( 'Parent Task', 'text_domain' ), 'all_items' => __( 'All Tasks', 'text_domain' ), 'view_item' => __( 'View Task', 'text_domain' ), 'add_new_item' => __( 'Add New Task', 'text_domain' ), 'add_new' => __( 'New Task', 'text_domain' ), 'edit_item' => __( 'Edit Task', 'text_domain' ), 'update_item' => __( 'Update Task', 'text_domain' ), 'search_items' => __( 'Search tasks', 'text_domain' ), 'not_found' => __( 'No tasks found', 'text_domain' ), 'not_found_in_trash' => __( 'No taskss found in Trash', 'text_domain' ), ); $args = array( 'label' => __( 'task', 'text_domain' ), 'description' => __( 'project tasks', 'text_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'comments', 'custom-fields', ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 5, 'menu_icon' => '', 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'query_var' => 'post_type', 'rewrite' => false, 'capability_type' => 'page', ); register_post_type( 'task', $args ); } // Hook into the 'init' action add_action( 'init', 'register_tasks_cpt', 0 );