Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: I Need Help Writing A Custom Function to Redirect Non-Logged in Users.


r-a-y
Keymaster

@r-a-y

I’m quite sure you can’t tack on just any component in the bp_is_active() function.

It should be like this:
if ( bp_is_active('profile') || bp_is_active('activity') || ... etc ) {

The easiest thing would be to list what you want publically available.

Here’s a function to build on:
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-make-a-private-community/?topic_page=2&num=15#post-44616

Skip to toolbar