Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

stanislavdental-prices

// Register Custom Post Type
function add_prices_cpt() {

	$labels = array(
		'name'                  => 'Прайси',
		'singular_name'         => 'Прайс',
		'menu_name'             => 'Прайси',
		'name_admin_bar'        => 'Прайс',
		'parent_item_colon'     => 'Прайс',
		'all_items'             => 'Всі прайси',
		'add_new_item'          => 'Додати прайс',
		'add_new'               => 'Додати нового',
		'new_item'              => 'Новий прайс',
		'edit_item'             => 'Редагувати',
		'update_item'           => 'Оновити',
		'view_item'             => 'Переглянути',
		'search_items'          => 'Знайти',
		'not_found'             => 'Не знайдено',
		'not_found_in_trash'    => 'Не знайдено в Кошику',
		'items_list'            => 'Items list',
		'items_list_navigation' => 'Items list navigation',
		'filter_items_list'     => 'Filter items list',
	);
	$args = array(
		'label'                 => 'Прайс',
		'description'           => 'Прайси',
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'excerpt', 'thumbnail', 'revisions', ),
		'hierarchical'          => false,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 5,
		'menu_icon'             => 'dashicons-feedback',
		'show_in_admin_bar'     => true,
		'show_in_nav_menus'     => true,
		'can_export'            => true,
		'has_archive'           => false,		
		'exclude_from_search'   => true,
		'publicly_queryable'    => true,
		'capability_type'       => 'page',
	);
	register_post_type( 'prices', $args );

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