bachcan contestant
// Register Custom Post Type
function bachcan_contestant() {
$labels = array(
'name' => _x( 'Contestants', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'Contestant', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'Contestants', 'text_domain' ),
'name_admin_bar' => __( 'Contestants', 'text_domain' ),
'archives' => __( 'Contestant Archives', 'text_domain' ),
'attributes' => __( 'Contestant Attributes', 'text_domain' ),
'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),
'all_items' => __( 'All Contestants', 'text_domain' ),
'add_new_item' => __( 'Add New Contestant', 'text_domain' ),
'add_new' => __( 'Add New', 'text_domain' ),
'new_item' => __( 'New Contestant', 'text_domain' ),
'edit_item' => __( 'Edit Contestant', 'text_domain' ),
'update_item' => __( 'Update Contestant', 'text_domain' ),
'view_item' => __( 'View Contestant', 'text_domain' ),
'view_items' => __( 'View Contestants', 'text_domain' ),
'search_items' => __( 'Search Contestant', 'text_domain' ),
'not_found' => __( 'Not found', 'text_domain' ),
'not_found_in_trash' => __( 'Not found in Trash', 'text_domain' ),
'featured_image' => __( 'Headshot', 'text_domain' ),
'set_featured_image' => __( 'Set headshot', 'text_domain' ),
'remove_featured_image' => __( 'Remove headshot', 'text_domain' ),
'use_featured_image' => __( 'Use as headshot', 'text_domain' ),
'insert_into_item' => __( 'Insert into Contestant', 'text_domain' ),
'uploaded_to_this_item' => __( 'Uploaded to this Contestant', 'text_domain' ),
'items_list' => __( 'Contestants list', 'text_domain' ),
'items_list_navigation' => __( 'Contestants list navigation', 'text_domain' ),
'filter_items_list' => __( 'Filter Contestants list', 'text_domain' ),
);
$args = array(
'label' => __( 'Contestant', 'text_domain' ),
'description' => __( 'Post Type Description', 'text_domain' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'revisions', 'page-attributes', ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'data:image/svg+xml;base64,PD94bWwgdmVyc2l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2MxMTMuODAyLDAsMjUwLjI4My0yNC40MzQsMjUwLjI4My03NS4xODdDNTU1Ljc4MSwzMjUuNDk1LDQ4OS40MSw0MTIuNjM4LDM4OS45OTcsMzM4LjgyNXoiLz48L2c+PC9zdmc+',
'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( 'contestant', $args );
}
add_action( 'init', 'bachcan_contestant', 0 );