Reply To: emails link to private forum after login
yes Robin,that was a mistake. Sorry for this confusion. They both work similar.
I also tried to put forums public + snippet to redirect visitors to login.
But the result is exactly the same. After login there is no redirect to the topic.
here is the snippet if you are curious :
/**
* Redirect bbPress pages for visitors
*/
function yzc_redirect_bbpress_to_login_page() {
if ( ! is_user_logged_in() && ( function_exists( 'is_bbpress') && is_bbpress() ) ) {
// Set Redirection Url
$redirect_url = 'https://www.website.com/login';
wp_redirect( $redirect_url );
exit();
}
}
add_action( 'template_redirect', 'yzc_redirect_bbpress_to_login_page' );
Do you think possible to redirect to private topic after login ?
regards