add_action( ‘init’, ‘cptui_register_my_cpts_application’ );
function cptui_register_my_cpts_application() {
$labels = array(
“name” => “Applications”,
“singular_name” => “Application”,
);
$args = array(
“labels” => $labels,
“description” => “”,
“public” => true,
“show_ui” => true,
“show_in_rest” => true,
“has_archive” => true,
“show_in_menu” => true,
“exclude_from_search” => false,
“capability_type” => “post”,
“map_meta_cap” => true,
“hierarchical” => true,
“rewrite” => array( “slug” => “application”, “with_front” => true ),
“query_var” => true,
“supports” => array( “title”, “editor”, “excerpt”, “trackbacks”, “custom-fields”, “comments”, “revisions”, “thumbnail”, “author”, “page-attributes”, “post-formats” ),
“taxonomies” => array( “application-category” ),
);
register_post_type( “application”, $args );
// End of cptui_register_my_cpts_application()
}