add_action( ‘init’, ‘cptui_register_my_cpts_instagram’ );
function cptui_register_my_cpts_instagram() {
$labels = array(
“name” => __( ‘インスタグラム’, ‘sosimple’ ),
“singular_name” => __( ‘インスタグラム’, ‘sosimple’ ),
);
$args = array(
“label” => __( ‘インスタグラム’, ‘sosimple’ ),
“labels” => $labels,
“description” => “”,
“public” => true,
“publicly_queryable” => true,
“show_ui” => true,
“show_in_rest” => false,
“rest_base” => “”,
“has_archive” => false,
“show_in_menu” => true,
“exclude_from_search” => false,
“capability_type” => “post”,
“map_meta_cap” => true,
“hierarchical” => false,
“rewrite” => array( “slug” => “instagram”, “with_front” => true ),
“query_var” => true,
“supports” => array( “title”, “editor”, “thumbnail” ), );
register_post_type( “instagram”, $args );
// End of cptui_register_my_cpts_instagram()
}