DRA Basında Biz
DRA Basında Biz
// Register Custom Post Type
function dra_press_type() {
$labels = array(
'name' => _x( 'Basında Biz', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'Basında Biz', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'Basında Biz', 'text_domain' ),
'name_admin_bar' => __( 'Basında Biz', 'text_domain' ),
'parent_item_colon' => __( 'Basında Biz:', 'text_domain' ),
'all_items' => __( 'Tümünü Listele', 'text_domain' ),
'add_new_item' => __( 'Yeni Ekle (Basında Biz)', 'text_domain' ),
'add_new' => __( 'Yeni Ekle', 'text_domain' ),
'new_item' => __( 'Yeni (Basında Biz)', 'text_domain' ),
'edit_item' => __( 'Düzenle (Basında Biz)', 'text_domain' ),
'update_item' => __( 'Güncelle (Basında Biz)', 'text_domain' ),
'view_item' => __( 'Görüntüle (Basında Biz)', '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' => 'basinda-biz',
'with_front' => true,
'pages' => true,
'feeds' => true,
);
$capabilities = array(
'edit_post' => 'dra_press_edit_post',
'read_post' => 'dra_press_read_post',
'delete_post' => 'dra_press_delete_post',
'edit_posts' => 'dra_press_edit_posts',
'edit_others_posts' => 'dra_press_edit_others_posts',
'publish_posts' => 'dra_press_publish_posts',
'read_private_posts' => 'dra_press_read_private_posts',
);
$args = array(
'label' => __( 'Basında Biz', 'text_domain' ),
'description' => __( 'Basında Biz', '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-pressthis',
'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_press_query',
'rewrite' => $rewrite,
'capabilities' => $capabilities,
);
register_post_type( 'dra_press', $args );
}
add_action( 'init', 'dra_press_type', 0 );