login_redirect issue
-
Can someone explain?
the login_redirect() hook is being called BEFORE the wp-login.php is submitted?
How can that be? It is login_redirect… it should be called AFTER ?
my situation:
I have a page I’m trying to restrict access to.
on this page, I have the PHP code:<?php if (!is_user_logged_in()) { auth_redirect(); exit; } ?>
so when you load that page URL in the browser, it redirects to wp-login.php
so WHY is it calling login_redirect when the wp-login.php loads?
it should not?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘login_redirect issue’ is closed to new replies.