@east1 Here’s a filter for the host and producer post type registration to remove the public profile pages:
/* disable public host and producer profile pages */
add_filter( 'radio_station_post_type_host', 'custom_disable_profile_pages' );
add_filter( 'radio_station_post_type_producer', 'custom_disable_profile_pages' );
function custom_disable_profile_pages( $post_type ) {
$post_type['public'] = false;
$post_type['has_archive'] = false;
return $post_type;
}
You’ll probably want to disable the redirection of author pages to profile pages also:
/* do not redirect links to profile pages */
remove_filter( 'radio_station_host_url', 'radio_station_pro_host_url', 10, 2 );
remove_filter( 'radio_station_producer_url', 'radio_station_pro_producer_url', 10, 2 );
And maybe filter shortcodes/widgets to not link there either:
/* do not link to host profiles from widgets */
add_filter( 'shortcode_atts_current_show', 'custom_disable_profile_links', 10, 4 );
add_filter( 'shortcode_atts_upcoming_shows', 'custom_disable_profile_links', 10, 4 );
function custom_disable_profile_links( $out, $pairs, $atts, $shortcode ) {
$out['link_hosts'] = 0;
return $out;
}
Not sure if you are wanting to remove the Host/Producer/Team tab from the Show page also? I might just make this one an option as there is already a setting for combining them.