Redirects no longer working when Hide Login Area is enabled
-
Hi @dwinden,
I have 2 redirects that no longer work when Hide Login Area is enabled. When I disable it, the redirects work fine!
1. In the loop:
<a href="<?php echo wp_login_url( get_permalink() ); ?>">blablalba</a>
redirects to homepage after logging in instead of to the current permalink.
2. In my functions.php:
function redirectToHome(){ wp_redirect( home_url() ); exit(); } add_action('wp_logout','redirectToHome');
Logging out reloads the same page, while it should be redirecting to home page.
Any idea of how to fix this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Redirects no longer working when Hide Login Area is enabled’ is closed to new replies.