product registration view
for registration post type
// Register Custom Post Type function product_ekran_func() { $labels = array( 'name' => _x( 'آثار', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'EkranProduct', 'Post Type Singular Name', 'text_domain' ), 'menu_name' => __( 'ثبت اثر', 'text_domain' ), 'name_admin_bar' => __( 'ثبت اثر', 'text_domain' ), 'parent_item_colon' => __( 'ثبت اثر', 'text_domain' ), 'all_items' => __( 'همه آثار', 'text_domain' ), 'add_new_item' => __( 'اثر جدید', 'text_domain' ), 'add_new' => __( 'افزودن', 'text_domain' ), 'new_item' => __( 'افزودن اثر', 'text_domain' ), 'edit_item' => __( 'ویرایش اثر', 'text_domain' ), 'update_item' => __( 'تغییرات اثر', 'text_domain' ), 'view_item' => __( 'مشاهده جزییات', 'text_domain' ), 'search_items' => __( 'جستجو', 'text_domain' ), 'not_found' => __( 'موردی یافت نشد', 'text_domain' ), 'not_found_in_trash' => __( 'موردی برای بازیافت پیدا نشد', 'text_domain' ), ); $rewrite = array( 'slug' => 'phenomena', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'product_ekran', 'text_domain' ), 'description' => __( 'post type for create product', 'text_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'comments', 'custom-fields', 'post-formats', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-welcome-view-site', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'product_ekran', $args ); } // Hook into the 'init' action add_action( 'init', 'product_ekran_func', 0 );