ewrwe
wrw
if ( ! function_exists('product_post_type') ) { // Register Custom Post Type function product_post_type() { $labels = array( 'name' => _x( 'Ürünler', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'Ürün', 'Post Type Singular Name', 'text_domain' ), 'menu_name' => __( 'Ürün Kataloğu', 'text_domain' ), 'name_admin_bar' => __( 'Ürün Kataloğu', 'text_domain' ), 'archives' => __( 'Ürün Arşivi', 'text_domain' ), 'attributes' => __( 'Item Attributes', 'text_domain' ), 'parent_item_colon' => __( 'Ebeveyn Ürün', 'text_domain' ), 'all_items' => __( 'Tüm Ürünler', 'text_domain' ), 'add_new_item' => __( 'Yeni Ürün Ekle', 'text_domain' ), 'add_new' => __( 'Yeni Ekle', 'text_domain' ), 'new_item' => __( 'Yeni Ürün', 'text_domain' ), 'edit_item' => __( 'Ürünü Düzenle', 'text_domain' ), 'update_item' => __( 'Ürünü Güncelle', 'text_domain' ), 'view_item' => __( 'Görüntüle', 'text_domain' ), 'view_items' => __( 'Ürünleri Görüntüle', 'text_domain' ), 'search_items' => __( 'Ürün Ara', 'text_domain' ), 'not_found' => __( 'Bulunamadı', 'text_domain' ), 'not_found_in_trash' => __( 'Silinmiş Ürün Bulunamadı', 'text_domain' ), 'featured_image' => __( 'Ürün Ana Resmi', 'text_domain' ), 'set_featured_image' => __( 'Ürüne Resim Seç', 'text_domain' ), 'remove_featured_image' => __( 'Resmi Sil', 'text_domain' ), 'use_featured_image' => __( 'Seçilen Resmi Kullan', 'text_domain' ), 'insert_into_item' => __( 'Insert into item', 'text_domain' ), 'uploaded_to_this_item' => __( 'Ürün Yükleyin', 'text_domain' ), 'items_list' => __( 'Ürün Listesi', 'text_domain' ), 'items_list_navigation' => __( 'Items list navigation', 'text_domain' ), 'filter_items_list' => __( 'Filter items list', 'text_domain' ), ); $args = array( 'label' => __( 'Ürün', 'text_domain' ), 'description' => __( 'Ürün Kataloğu', 'text_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields' ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-store', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', 'show_in_rest' => false, ); register_post_type( 'product_post', $args ); } add_action( 'init', 'product_post_type', 0 ); }