Login URL prevention rules
-
Hi,
I was using a plugin that allows us to do the exact same thing you have on yours to hide the login page. But, we have the following code on our functions.php file, so it allows us to redirect to the login page based on the referrer (we need such fucnionality in order to operate with our external services), but it seems it does not work with your plugin, although it did on the previous plugin, would you help us out?:
add_action( 'template_redirect', 'services_redirect'); function services_redirect() { if (!is_user_logged_in() && strpos($_SERVER['HTTP_REFERER'], "services") !== false){ wp_redirect( site_url('/customlogin/') ); exit; } }
Thanks
Kind regards
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Login URL prevention rules’ is closed to new replies.