Redirect to homepage after login/logout in WordPress
Let’s assume you have a WooCommerce shop in multisite WordPress installation. When user will logout then is redirected to main website from your multisite. User should be redirected to homepage of your store. If you want to redirect user to homepage after login or logout in WordPress put this code in
After applying this code in your theme, user after login or logout will be redirected to homepage.