Customize: Programs CPT
// Register Custom Post Type
function pitchfork_customize_create_program_cpt() {
$labels = array(
'name' => 'Programs',
'singular_name' => 'Program',
'menu_name' => 'Programs',
'name_admin_bar' => 'Program',
'archives' => 'Program Archives',
'attributes' => 'Program Attributes',
'parent_item_colon' => 'Parent Program:',
'all_items' => 'All Programs',
'add_new_item' => 'Add New Program',
'add_new' => 'Add New',
'new_item' => 'New Program',
'edit_item' => 'Edit Program',
'update_item' => 'Update Program',
'view_item' => 'View Program',
'view_items' => 'View Programs',
'search_items' => 'Search Program',
'not_found' => 'Not found',
'not_found_in_trash' => 'Not found in Trash',
'featured_image' => 'Card Image',
'set_featured_image' => 'Set card image',
'remove_featured_image' => 'Remove card image',
'use_featured_image' => 'Use as card image',
'insert_into_item' => 'Insert into Program',
'uploaded_to_this_item' => 'Uploaded to this program',
'items_list' => 'Programs list',
'items_list_navigation' => 'Programs list navigation',
'filter_items_list' => 'Filter programs list',
);
$args = array(
'label' => 'Program',
'description' => 'Programs for students',
'labels' => $labels,
'supports' => array( 'title', 'thumbnail', 'revisions', 'page-attributes' ),
'taxonomies' => array( 'program_emphasis' ),
'hierarchical' => false,
'public' => false,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 20,
'show_in_admin_bar' => true,
'show_in_nav_menus' => false,
'can_export' => true,
'has_archive' => false,
'exclude_from_search' => true,
'publicly_queryable' => true,
'capability_type' => 'page',
'show_in_rest' => false,
);
register_post_type( 'program', $args );
}
add_action( 'init', 'pitchfork_customize_create_program_cpt', 0 );