Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Plugin: Force Login for Member Pages


m@rk
Participant

@mrk-1

Cozzie,

bp_core_redirect( get_bloginfo('siteurl') . '/wp-login.php?redirect_to=' . urlencode( $bp->root_domain . $_SERVER['REQUEST_URI'] ));

should work.

But, while testing this, I figured out that the redirect_to doesn’t result in any effect? Even if a valid rediret_to parameter is given, users are always forwarded to the frontpage!? What’s wrong with redirect_to?

Skip to toolbar