Viewing 1 replies (of 1 total)
  • Plugin Support Darin Kotter

    (@dkotter)

    @ditout Thanks for the question.

    The wp-login.php page is different from most other pages that WordPress renders and as such, it doesn’t fire off the same hooks that a typical dynamically rendered page would. We rely on these hooks to load our redirect functionality so redirects will not work here.

    I would also suggest not having a redirect from the logout page, as that doesn’t seem like the best user experience, but you could achieve that with the following code:

    
    add_action( 'login_form_logout', function() {
    	wp_safe_redirect( get_home_url(), 302 );
    	exit;
    } );
    
Viewing 1 replies (of 1 total)
  • The topic ‘Redirect not success’ is closed to new replies.