change `wp_safe_redirect` location from user dashboard to `edit-account` endpoint

This commit is contained in:
Kamil 2022-03-30 22:04:56 +02:00
parent 69b6a71ab5
commit 43e36a945d
1 changed files with 1 additions and 1 deletions

View File

@ -347,7 +347,7 @@ class WC_Form_Handler {
do_action( 'woocommerce_save_account_details', $user->ID );
wp_safe_redirect( wc_get_page_permalink( 'myaccount' ) );
wp_safe_redirect( wc_get_endpoint_url( 'edit-account', '', wc_get_page_permalink( 'myaccount' ) ) );
exit;
}
}