display pages only if logged into bbpress
I am looking to only display pages if users are logged into BBPress. I am aware that i can set the visibility of a page to be password protected however this is an additional step that could be avoided.
I have noticed there is a function bb_is_user_logged_in() that i could utilise however i dont know where i should add the code and indeed if it needs to go in the theme or child theme.
Can anyone help?
Many thanks and have a nice day
- You must be logged in to reply to this topic.