This guide shows you how you can redirect users to any page on your site when they logout instead of the default My Account login page. Simply enter the Post ID of the URL you wish to redirect users to when they logout. To get the post ID, simply edit that page and the URL will show you the integer ID. Alternatively, you can hover over the post in the backend editor where you “Quick Edit” posts and you’ll see the ID there too.
/**
* Snippet Name: WooCommerce Logout Redirect
* Snippet Author: ecommercehints.com
*/
add_action('wp_logout', 'ecommercehints_logout_redirect');
function ecommercehints_logout_redirect(){
wp_safe_redirect( get_permalink( 121 ) ); // The Post ID to redirect users to when they logout
exit;
}