function cptui_register_my_cpts_podcast_episode() { /** * Post Type: Podcasts Episodes. */ $labels = [ "name" => __( "Podcasts Episodes", "hello-elementor-child" ), "singular_name" => __( "Podcast Episode", "hello-elementor-child" ), ]; $args = [ "label" => __( "Podcasts Episodes", "hello-elementor-child" ), "labels" => $labels, "description" => "", "public" => true, "publicly_queryable" => true, "show_ui" => true, "show_in_rest" => true, "rest_base" => "", "rest_controller_class" => "WP_REST_Posts_Controller", "has_archive" => false, "show_in_menu" => true, "show_in_nav_menus" => true, "delete_with_user" => false, "exclude_from_search" => false, "capability_type" => "post", "map_meta_cap" => true, "hierarchical" => false, "rewrite" => [ "slug" => "podcast_episode", "with_front" => true ], "query_var" => true, "menu_icon" => "dashicons-microphone", "supports" => [ "title", "editor", "thumbnail" ], "show_in_graphql" => false, ]; register_post_type( "podcast_episode", $args ); } add_action( 'init', 'cptui_register_my_cpts_podcast_episode' );