When I declare a forum private the word "private:" is prepend to the title of the forum, and is visible even for the register members.

how can I get rid of that prepend word?


AFAIR BBPress relies on WP functions with these titles, so most probably this will be helpful:

function remove_private_prefix_from_title( $title ) {
    return '%s';
add_filter( 'private_title_format', 'remove_private_prefix_from_title' );

And here you can find docs for that filter: private_title_format

  • Thanks for your anwer, but, in which file this function should be in? in the functions.php of the theme? – Trauko Nov 29 '18 at 15:03
  • Yes, you can put it in functions.php file – Krzysiek Dróżdż Nov 29 '18 at 15:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.