<?php
if(!function_exists('goyto_page_template_type')  ){
    function goyto_page_template_type(){
		register_post_type( 'goyto_template',
		array(
			  'labels' => array(
				'name' => __( 'Template','goyto-plugin' ),
				'singular_name' => __( 'Template','goyto-plugin' )
			  ),
			'public' => true,
			'publicly_queryable' => true,
			'show_in_menu'      => false,
			'show_in_nav_menus'   => false,
			'supports' => ['title', 'elementor']
		)
		);
	}
	add_action( 'init','goyto_page_template_type',2 );
}
