add_filter('wpjam_post_types', 'wpjam_franke_add_product_post_types');
function wpjam_franke_add_product_post_types($wpjam_post_types){
$wpjam_post_types['product'] = array(
'label' => '产品',
'public' => true,
'show_ui' => true,
'has_archive' => true,
'menu_position' => 4,
'menu_icon' => 'dashicons-products',
'rewrite' => false,
// 'rewrite' => array('slug'=>'product','with_front'=>false,'feeds'=>false),
'permastruct' => 'product/%post_id%/',
// 'capability_type' => 'mp',
// 'thumbnail_column' => false,
'postviews_column' => false,
'supports' => array(
'title',
'editor',
'thumbnail'
)
);
return $wpjam_post_types;
}