@unterwegsinberlin
4 years, 1 month ago
Hi,
my forum is rather sensitive in form of private issues and problems. I would like to hife all replies for not logged-in users. How do I do this?
best Christine
@wpturk
you can try something like this:
function custom_logged_in_replies($posts){ if (!is_user_logged_in()){ $posts = null; echo 'Login to see the replies'; } return $posts; } add_filter('bbp_has_replies', 'custom_logged_in_replies');
you need to put this in your functions.php (better child theme)
Great thanks!