Woocommerce/Wordpress - Redirect User Login to Homepage
问题 I have searched for the answer to this, used plugins and still nothing works. I would like users of my site to be redirected to the home page after they login/register. Currently, the user logs in and is redirected to the my account page. Woocommerce provides this code, but it failed to work for me: /* * goes in theme functions.php or a custom plugin * * By default login goes to my account **/ add_filter('woocommerce_login_widget_redirect', 'custom_login_redirect'); function custom_login