• allanker3

    (@allanker3)


    Hello.

    I want that when I leave the My Account page, it does not redirect to the log in form but to a page that I have created myself. How can I make this redirection?

    • This topic was modified 3 years ago by Yui. Reason: moved to fixing wordpress
Viewing 2 replies - 1 through 2 (of 2 total)
  • corrinarusso

    (@corrinarusso)

    You can add this to the functions.php file in your child theme:

    add_action('wp_logout','auto_redirect_after_logout');
    function auto_redirect_after_logout(){
      wp_redirect( 'https://www.redirect-url-here.com' );
      exit();
    }
    Thread Starter allanker3

    (@allanker3)

    It works, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect to another page when I log out of my account’ is closed to new replies.