Home Forums WoodMart support forum Custom redirect not working

Custom redirect not working

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #453298

    pawel.walczak01
    Participant

    Hi
    I added below code to my child theme in functions.php file:

    add_action('wp_logout','auto_redirect_external_after_logout');
    
    function auto_redirect_external_after_logout(){
    
      wp_redirect('https://monpacie.pl/login/');
      exit();
    }

    This solution doesn’t work fine.
    After logging out, I am still redirected to the home page. I wanted to go to the login page. Please help.

    #453314

    Luke Nielsen
    Keymaster

    Hello,

    Sorry to say but right now there is no option in Theme Settings available for that. It requires Customization and this is beyond our limitations and support policy scope. Hope you can understand our limitations.

    Here is an article for help:

    https://woocommerce.com/document/redirect-after-login-registration-logout/

    Kind Regards

Viewing 2 posts - 1 through 2 (of 2 total)