Blocking bbPress forums unless logged in
-
I’m using a bit of code to redirect the user to the login page if they try viewing my forums without being logged in:
if (get_the_ID() == 84) { if (!is_user_logged_in()) { header('Location: ' . get_permalink(102)); } }However, I’ve realised this doesn’t protect the pages inside the forums, such as individual threads and the forum rooms.
Does anyone know of a way to password protect the whole forum section?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Blocking bbPress forums unless logged in’ is closed to new replies.