How To Update The Login Link To Go To The WooCommerce Account Page
When building a WooCommerce site, it’s a good idea to use a custom login page instead of the default
wp-login.php. Your users will feel far safer and more comfortable when logging into your WooCommerce store if the login page looks like the rest of the site. The default login page doesn’t include any navigation, headers or footers, and unless you’re using a plugin like White Label Login, will have the WordPress logo instead of your own. This is far from a coherent user experience, and could lead to the loss of a potential customer.
Updating Your Store’s Login URL
The code below will automatically redirect any logged out visits to
/wp-admin instead to the WooCommerce login page, as well as updates any other functions that are displaying a link to the login page. This will provide a more consistent user experience to your store’s customers.
Bonus tip: Make sure you are using an SSL certificate on any eCommerce site to help protect your users details.