Redirect logged out users to a custom login page
-
Hi !
I am new to buddypress and I am trying to figure out if it fits my needs. So far it looks amazing but I ran into a problem while individualising it. I’ve created a custom login page and I want to redirect all logged-out users to it.
The problem I ran into is that there a pages on which I don’t want to redirect users. Such pages like registration and activation for example. What worked for me here is that I used bp_is_register_page() and bp_is_activation_page() to check against those but I also need to be able to check against custom pages.
I figured out that those functions mentioned above use bp_is_current_component(). I thought about creating or registrating my own component to be able to check against but I did not figure out how that works.
Any help would be appreciated.
Cheers, nicky
- The topic ‘Redirect logged out users to a custom login page’ is closed to new replies.