Reply To: Created private forum, but title is "Private: Private: Own Your Mission Forum"
The ‘Private: …’ is added by WP in wp-includes/post-template.php inside of the function get_the_title(). bbpress uses this function in it’s own function bbp_get_forum_title() to generate the title -> ‘Private:’ is appended first time. When the theme now calls the_title() ‘Private:’ is appended again.
I adjusted bbp_get_forum_title() now: Add two filters, the first removes the ‘Private:’ from all Breadcrumbs and so on, the second appends ‘Private Forum:’ to the forum title.
function bbp_get_forum_title( $forum_id = 0 ) {
$forum_id = bbp_get_forum_id( $forum_id );
add_filter( 'private_title_format', function(){ return '%s'; } );
$title = get_the_title( $forum_id );
add_filter( 'private_title_format', function(){ return __( 'Private Forum: %s', 'bbpress' ); } );
return apply_filters( 'bbp_get_forum_title', $title, $forum_id );
}
Could one of the devs please take a look if this would be an option for you? I hardcoded it for now…