The WooCommerce My Account login form redirects to… itself once a WordPress user logs in. So, what if you want to redirect logged in users to another page or a different My Account endpoint?
Also, when you have a custom Login page, you may need to redirect users to the… My Account page!
Either way, here’s how to change the default redirect behavior. Enjoy!

PHP Snippet: Redirect Logins to Custom URL @ My Account Page
/**
* @snippet Custom Redirect for Logins @ WooCommerce My Account
* @how-to Get CustomizeWoo.com FREE
* @author Rodolfo Melogli
* @compatible WooCommerce 6
* @donate $9 https://businessbloomer.com/bloomer-armada/
*/
add_filter( 'woocommerce_login_redirect', 'bbloomer_customer_login_redirect', 9999 );
function bbloomer_customer_login_redirect( $redirect_url ) {
$redirect_url = '/shop';
return $redirect_url;
}