<?php
add_action('init', "drk_tlg_channels_post_type");

function drk_tlg_channels_post_type(){
	register_post_type('tlg_channels',array(
		"labels"=>array(
			"name" => __('Telegram Channels', "drk"),
			"singular_name" => __("Telegram Channel", "drk"),
			"add_news" => __("Add Channel", "drk"),
			"edit_news" => __("Edit Channel", "drk"),
			"delete_news" => __("Delete Channel", "drk")
		),
		"has_archive" => false,
		"public" => true,
		"publicly_queryable" => false,
		"show_ui" => true,
		"show_in_menu" => true,
		"show_in_rest" => true,
		"supports" => array( 'title', 'editor', 'thumbnail','custom-fields', 'comments', 'excerpt'),
		"can_export" => false,
		'taxonomies' => array('post_tag'),
		"menu_position" => 5,
		"menu_icon" => "dashicons-bell"
	));
}
add_action('init', "drk_tlg_channels_post_type");