khealth symptom guides
if ( ! function_exists('register_symptom_guides_post_type') ) {
// Register Custom Post Type
function register_symptom_guides_post_type() {
$labels = array(
'name' => _x( 'Symptom Guides', 'Post Type General Name', 'khealth' ),
'singular_name' => _x( 'Symptom Guide', 'Post Type Singular Name', 'khealth' ),
'menu_name' => __( 'Symptom Guides', 'khealth' ),
'name_admin_bar' => __( 'Symptom Guide', 'khealth' ),
'archives' => __( 'Symptom Guide Archives', 'khealth' ),
'attributes' => __( 'Symptom Guide Attributes', 'khealth' ),
'parent_item_colon' => __( 'Parent Symptom Guide:', 'khealth' ),
'all_items' => __( 'All Symptom Guides', 'khealth' ),
'add_new_item' => __( 'Add New Symptom Guide', 'khealth' ),
'add_new' => __( 'Add New', 'khealth' ),
'new_item' => __( 'New Item', 'khealth' ),
'edit_item' => __( 'Edit Item', 'khealth' ),
'update_item' => __( 'Update Item', 'khealth' ),
'view_item' => __( 'View Item', 'khealth' ),
'view_items' => __( 'View Items', 'khealth' ),
'search_items' => __( 'Search Item', 'khealth' ),
'not_found' => __( 'Not found', 'khealth' ),
'not_found_in_trash' => __( 'Not found in Trash', 'khealth' ),
'featured_image' => __( 'Featured Image', 'khealth' ),
'set_featured_image' => __( 'Set featured image', 'khealth' ),
'remove_featured_image' => __( 'Remove featured image', 'khealth' ),
'use_featured_image' => __( 'Use as featured image', 'khealth' ),
'insert_into_item' => __( 'Insert into item', 'khealth' ),
'uploaded_to_this_item' => __( 'Uploaded to this item', 'khealth' ),
'items_list' => __( 'Items list', 'khealth' ),
'items_list_navigation' => __( 'Items list navigation', 'khealth' ),
'filter_items_list' => __( 'Filter items list', 'khealth' ),
);
$rewrite = array(
'slug' => 'article',
'with_front' => true,
'pages' => true,
'feeds' => true,
);
$args = array(
'label' => __( 'Symptom Guide', 'khealth' ),
'description' => __( 'Symptom Guide articles', 'khealth' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 100,
'menu_icon' => 'dashicons-format-aside',
'show_in_admin_bar' => true,
'show_in_nav_menus' => false,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'rewrite' => $rewrite,
'capability_type' => 'post',
);
register_post_type( 'symptom_guide', $args );
}
add_action( 'init', 'register_symptom_guides_post_type', 0 );
}