Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Stream post type

// Register Custom Post Type
function create_conference_stream_post_type() {

	$labels = array(
		'name'                  => 'Streams',
		'singular_name'         => 'Stream',
		'menu_name'             => 'Strmea Streams',
		'name_admin_bar'        => 'Streams',
		'parent_item_colon'     => 'Parent:',
		'all_items'             => 'All Streams',
		'add_new_item'          => 'Add new Stream',
		'add_new'               => 'Add New',
		'new_item'              => 'New Stream',
		'edit_item'             => 'Edit Stream',
		'update_item'           => 'Update Stream',
		'view_item'             => 'View Stream',
		'search_items'          => 'Search Streams',
		'not_found'             => 'Not found',
		'not_found_in_trash'    => 'Not found in Trash',
		'items_list'            => 'Streams list',
		'items_list_navigation' => 'Streams list navigation',
		'filter_items_list'     => 'Filter Streams list',
	);
	$args = array(
		'label'                 => 'Stream',
		'description'           => 'Conference Streams',
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'revisions', 'custom-fields', ),
		'hierarchical'          => true,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 10,
		'menu_icon'             => 'dashicons-clock',
		'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',
	);
	register_post_type( 'stream', $args );

}
add_action( 'init', 'create_conference_stream_post_type', 0 );