Biscup: Conditions
// Register Custom Post Type
function post_type_conditions() {
$labels = array(
'name' => _x( 'Conditions', 'Post Type General Name', 'biscup-spine-theme' ),
'singular_name' => _x( 'Condition', 'Post Type Singular Name', 'biscup-spine-theme' ),
'menu_name' => __( 'Conditions', 'biscup-spine-theme' ),
'name_admin_bar' => __( 'Condition', 'biscup-spine-theme' ),
'archives' => __( 'Condition Archives', 'biscup-spine-theme' ),
'attributes' => __( 'Condition Attributes', 'biscup-spine-theme' ),
'parent_item_colon' => __( 'Parent Condition:', 'biscup-spine-theme' ),
'all_items' => __( 'All Conditions', 'biscup-spine-theme' ),
'add_new_item' => __( 'Add New Condition', 'biscup-spine-theme' ),
'add_new' => __( 'Add New', 'biscup-spine-theme' ),
'new_item' => __( 'New Condition', 'biscup-spine-theme' ),
'edit_item' => __( 'Edit Condition', 'biscup-spine-theme' ),
'update_item' => __( 'Update Condition', 'biscup-spine-theme' ),
'view_item' => __( 'View Condition', 'biscup-spine-theme' ),
'view_items' => __( 'View Conditions', 'biscup-spine-theme' ),
'search_items' => __( 'Search Condition', 'biscup-spine-theme' ),
'not_found' => __( 'Not found', 'biscup-spine-theme' ),
'not_found_in_trash' => __( 'Not found in Trash', 'biscup-spine-theme' ),
'featured_image' => __( 'Featured Image', 'biscup-spine-theme' ),
'set_featured_image' => __( 'Set featured image', 'biscup-spine-theme' ),
'remove_featured_image' => __( 'Remove featured image', 'biscup-spine-theme' ),
'use_featured_image' => __( 'Use as featured image', 'biscup-spine-theme' ),
'insert_into_item' => __( 'Insert into Condition', 'biscup-spine-theme' ),
'uploaded_to_this_item' => __( 'Uploaded to this Condition', 'biscup-spine-theme' ),
'items_list' => __( 'Conditions list', 'biscup-spine-theme' ),
'items_list_navigation' => __( 'Conditions list navigation', 'biscup-spine-theme' ),
'filter_items_list' => __( 'Filter Conditions list', 'biscup-spine-theme' ),
);
$args = array(
'label' => __( 'Condition', 'biscup-spine-theme' ),
'labels' => $labels,
'supports' => array( 'title', 'editor' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'post_type_conditions', $args );
}
add_action( 'init', 'post_type_conditions', 0 );