Blogroll

How to Redirect Woocommerce Logout page in targeted page

If you are running a woo commerce website then you re may be facing a problem related to the logout redirection problem then you can easily use the given code. 

Just copy the code then in WordPress you have to go to the Theme file editor. Now you have to find out functions.php. Now open the file and go to the last line. Now paste the given code and change the URL. Then it will fix your problem. 

How to Redirect Woocommerce Logout page in targeted page


add_action('wp_logout','auto_redirect_external_after_logout');


function auto_redirect_external_after_logout(){


  wp_redirect('write your url here');

  exit();


}

Read more : 


0 Comments:

Post a Comment