WooCommerce – Redirect to a custom page after logging out

July 20, 2020

By default, Woo Commerce will redirect customers to the My Account page after logging out. However, you may want them to go somewhere else – here’s how.

Sometime you have to Redirect to a custom page after logging out. There are Multiple way for this But we are Redirect to a custom page after logging out using functions.php.

You have to copy below code and add in your functions.php. This is the easiest way for this task.

There is action for this and You can use this action. You can call function when user logout. Then You can use wp_redirect() function for redirect customer and Pass url as a Parameter and use exit function. Now You can try logging out User.

Hope this Helps.

Karan Suthar

Surat, India

I'm Karan, the creator Behind the KTechBlog. I write Blogs in my Free Time. I ❤ to learn new Technologies and Share with Others. I'm Trying best effort to make KTechBlog useful for Everyone.

Related posts