Feedback on login Closes #3286.

This commit is contained in:
Mike Jolley 2013-07-19 07:20:54 +01:00
parent 34c90813bd
commit 9a8de0ae86
1 changed files with 3 additions and 0 deletions

View File

@ -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 <strong>%s</strong>', 'woocommerce' ), $user->display_name ) );
wp_redirect( apply_filters( 'woocommerce_login_redirect', $redirect, $user ) );
exit;
}