Written by Anonymous
function cptui_register_my_cpts_info() {
$labels = array(
"name" => __( "情報", "custom-post-type-ui" ),
"singular_name" => __( "情報", "custom-post-type-ui" ),
"menu_name" => __( "情報", "custom-post-type-ui" ),
);
$args = array(
"label" => __( "情報", "custom-post-type-ui" ),
"labels" => $labels,
"description" => "",
"public" => true,
"publicly_queryable" => true,
"show_ui" => true,
"delete_with_user" => false,
"show_in_rest" => true,
"rest_base" => "",
"rest_controller_class" => "WP_REST_Posts_Controller",
"has_archive" => true,
"show_in_menu" => true,
"show_in_nav_menus" => true,
"exclude_from_search" => false,
"capability_type" => "post",
"map_meta_cap" => true,
"hierarchical" => true,
"rewrite" => array( "slug" => "info", "with_front" => true ),
"query_var" => true,
"menu_position" => 5,
"supports" => array( "title", "editor" ),
"taxonomies" => array( "info_cat" ),
);
register_post_type( "info", $args );
}
add_action( 'init', 'cptui_register_my_cpts_info' );