Redirect Logout on the WooCommerce My Account Page

If you want to redirect your customers to a different page after they use the logout option on the WooCommerce My Account page, use the following PHP snippet:

/**
* WooCommerce My Account Page Logout Redirect
*/
add_action( 'wp_logout', 'owp_redirect_after_logout' );
function owp_redirect_after_logout() {
         wp_redirect( 'your url here' );
         exit();
}

All PHP snippets should be added via a child theme's functions.php file.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.