diff --git a/woocommerce-functions.php b/woocommerce-functions.php index 1f81d140ba8..fc33c558cd7 100644 --- a/woocommerce-functions.php +++ b/woocommerce-functions.php @@ -675,6 +675,9 @@ function woocommerce_process_login() { $redirect = esc_url( get_permalink( woocommerce_get_page_id( 'myaccount' ) ) ); } + // Feedback + wc_add_message( sprintf( __( 'You are now logged in as %s', 'woocommerce' ), $user->display_name ) ); + wp_redirect( apply_filters( 'woocommerce_login_redirect', $redirect, $user ) ); exit; }