<?php

function drk_special_pages_custom_post_type() {
	$labels = array(
		'name'               => __( 'Special pages' ),
		'singular_name'      => __( 'Page' ),
		'menu_name'          => __( 'Special Pages' ),
		'all_items'          => __( 'All pages' ),
		'view_item'          => __( 'View page' ),
		'add_new_item'       => __( 'Add page' ),
		'add_new'            => __( 'Add page' ),
		'edit_item'          => __( 'Edit page' ),
		'update_item'        => __( 'Update page' ),
		'search_items'       => __( 'Search page' ),
		'not_found'          => __( 'Not Found' ),
		'not_found_in_trash' => __( 'Not found in Trash' )
	);
	$args   = array(
		'label'               => __( 'Special pages' ),
		'description'         => __( 'Info pages' ),
		'labels'              => $labels,
		'supports'            => array(
			'title',
            'editor'
		),
		'public'              => true,
		'hierarchical'        => false,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'show_in_nav_menus'   => true,
		'show_in_admin_bar'   => true,
		'has_archive'         => false,
		'can_export'          => false,
		'exclude_from_search' => true,
		'yarpp_support'       => true,
		'taxonomies'          => false,
		'publicly_queryable'  => false,
		'capability_type'     => 'post',
		'menu_position'       => 8,
		'menu_icon'           => 'dashicons-info-outline',
		'show_in_rest'       => true
	);
	register_post_type( 'special_pages', $args );
}

add_action( 'init', 'drk_special_pages_custom_post_type', 0);
?>