Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

DRA Sıkça Sorulan Sorular

DRA Sıkça Sorulan Sorular

// Register Custom Post Type
function dra_faq_type() {

	$labels = array(
		'name'                => _x( 'Sıkça Sorulan Sorular', 'Post Type General Name', 'text_domain' ),
		'singular_name'       => _x( 'Sıkça Sorulan Sorular', 'Post Type Singular Name', 'text_domain' ),
		'menu_name'           => __( 'S.S.S.', 'text_domain' ),
		'name_admin_bar'      => __( 'S.S.S.', 'text_domain' ),
		'parent_item_colon'   => __( 'Sıkça Sorulan Sorular:', 'text_domain' ),
		'all_items'           => __( 'Tümünü Listele', 'text_domain' ),
		'add_new_item'        => __( 'Yeni Ekle (Sıkça Sorulan Sorular)', 'text_domain' ),
		'add_new'             => __( 'Yeni Ekle', 'text_domain' ),
		'new_item'            => __( 'Yeni (Sıkça Sorulan Sorular)', 'text_domain' ),
		'edit_item'           => __( 'Düzenle (Sıkça Sorulan Sorular)', 'text_domain' ),
		'update_item'         => __( 'Güncelle (Sıkça Sorulan Sorular)', 'text_domain' ),
		'view_item'           => __( 'Görüntüle (Sıkça Sorulan Sorular)', 'text_domain' ),
		'search_items'        => __( 'Arama', 'text_domain' ),
		'not_found'           => __( 'Kayıt Bulunamadı', 'text_domain' ),
		'not_found_in_trash'  => __( 'Çöp Kutusu Boş', 'text_domain' ),
	);
	$rewrite = array(
		'slug'                => 'sikca-sorulan-sorular',
		'with_front'          => true,
		'pages'               => true,
		'feeds'               => true,
	);
	$capabilities = array(
		'edit_post'           => 'dra_faq_edit_post',
		'read_post'           => 'dra_faq_read_post',
		'delete_post'         => 'dra_faq_delete_post',
		'edit_posts'          => 'dra_faq_edit_posts',
		'edit_others_posts'   => 'dra_faq_edit_others_posts',
		'publish_posts'       => 'dra_faq_publish_posts',
		'read_private_posts'  => 'dra_faq_read_private_posts',
	);
	$args = array(
		'label'               => __( 'Sıkça Sorulan Sorular', 'text_domain' ),
		'description'         => __( 'Sıkça Sorulan Sorular', 'text_domain' ),
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'menu_position'       => 25,
		'menu_icon'           => 'dashicons-format-status',
		'show_in_admin_bar'   => true,
		'show_in_nav_menus'   => true,
		'can_export'          => true,
		'has_archive'         => false,		
		'exclude_from_search' => false,
		'publicly_queryable'  => true,
		'query_var'           => 'dra_faq_query',
		'rewrite'             => $rewrite,
		'capabilities'        => $capabilities,
	);
	register_post_type( 'dra_faq', $args );

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