Skip to main content
added 62 characters in body
Source Link

I would change to this

wp_safe_redirect( wc_get_page_permalink( 'myaccount' ) );

instead of

wp_redirect( site_url('my-account/') );

I would change to this

wp_safe_redirect( wc_get_page_permalink( 'myaccount' ) );

I would change to this

wp_safe_redirect( wc_get_page_permalink( 'myaccount' ) );

instead of

wp_redirect( site_url('my-account/') );
Source Link

I would change to this

wp_safe_redirect( wc_get_page_permalink( 'myaccount' ) );