After your users log out from their accounts on your site, you need to redirect them to a certain page. It may be the homepage of your site or, any other page.
To redirect the users after log out, you can simply use the User Registration shortcode. By adding the Log out parameter to it, you can easily redirect the user to any desired page on your site.
Whether it is your homepage, product page or any other page, just add the page URL with the Log out parameter “logout_redirect”. The shortcode is given below:
[user_registration_my_account logout_redirect=’page-slug’]