Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Вебинары

if ( ! function_exists('webinar_post_type') ) {

// Register Custom Post Type
function webinar_post_type() {

	$labels = array(
		'name'                  => 'Вебинары',
		'singular_name'         => 'Вебинар',
		'menu_name'             => 'Вебинары',
		'name_admin_bar'        => 'Вебинар',
		'archives'              => 'Архив вебинаров',
		'attributes'            => 'Item Attributes',
		'parent_item_colon'     => 'Parent Item:',
		'all_items'             => 'All Items',
		'add_new_item'          => 'Add New Item',
		'add_new'               => 'Добавить',
		'new_item'              => 'Новый',
		'edit_item'             => 'Редактировать',
		'update_item'           => 'Обновить',
		'view_item'             => 'Просмотр',
		'view_items'            => 'View Items',
		'search_items'          => 'Поиск вебинаров',
		'not_found'             => 'Не найдено',
		'not_found_in_trash'    => 'Not found in Trash',
		'featured_image'        => 'Featured Image',
		'set_featured_image'    => 'Set featured image',
		'remove_featured_image' => 'Remove featured image',
		'use_featured_image'    => 'Use as featured image',
		'insert_into_item'      => 'Insert into item',
		'uploaded_to_this_item' => 'Загружено в этот элемент',
		'items_list'            => 'Список вебинаров',
		'items_list_navigation' => 'Навигация по вебинарам',
		'filter_items_list'     => 'Фильтр по вебинарам',
	);
	$args = array(
		'label'                 => 'Вебинар',
		'description'           => 'Архив записей вебинаров',
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'thumbnail', 'comments', 'custom-fields' ),
		'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'           => false,
		'exclude_from_search'   => false,
		'publicly_queryable'    => true,
		'capability_type'       => 'page',
	);
	register_post_type( 'webinar', $args );

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

}