From 9a8de0ae86f685d04c49c6f9c2e6ef038ef0ef4e Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Fri, 19 Jul 2013 07:20:54 +0100 Subject: [PATCH] Feedback on login Closes #3286. --- woocommerce-functions.php | 3 +++ 1 file changed, 3 insertions(+) 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; }