Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,869
- Creating & Extending
- 25,900
- Requests & Feedback
- 9,547
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,178
-
Now i’ve done what you’ve said and it still doesn’t work..
add_action( 'wp', 'ps_redirect_to_login' );
function ps_redirect_to_login() {
if ( is_page('medlemmer') && ! is_user_logged_in() ) {
wp_redirect( 'http://www.legit-check.dk/rm_login/', 301 );
exit();
}
}