__( 'Video Tags', 'trueplayer' ), 'public' => false, 'hierarchical' => false, 'show_ui' => false, 'show_in_rest' => true, 'rest_base' => 'video-tags', 'show_admin_column' => false, ] ); register_post_type( TRUEPLAYER_VIDEO_POST_TYPE, [ 'label' => __( 'Videos', 'trueplayer' ), 'public' => false, 'show_ui' => false, 'show_in_menu' => false, 'show_in_rest' => true, 'rest_base' => 'videos', 'supports' => [ 'title', 'author', 'custom-fields' ], 'taxonomies' => [ self::VIDEO_TAXONOMY ], 'capability_type' => 'post', 'map_meta_cap' => true, 'exclude_from_search' => true, ] ); register_post_type( TRUEPLAYER_PRESET_POST_TYPE, [ 'label' => __( 'Player Presets', 'trueplayer' ), 'public' => false, 'show_ui' => false, 'show_in_menu' => false, 'show_in_rest' => true, 'rest_base' => 'presets', 'supports' => [ 'title', 'custom-fields' ], 'capability_type' => 'post', 'map_meta_cap' => true, 'exclude_from_search' => true, ] ); } }