Same hook for reg. #2270

This commit is contained in:
Mike Jolley 2013-01-23 11:41:54 +00:00
parent a9154c07a4
commit eb544b10a7
1 changed files with 4 additions and 2 deletions

View File

@ -676,8 +676,7 @@ function woocommerce_process_login() {
* @return void
*/
function woocommerce_process_registration() {
global $woocommerce;
global $woocommerce, $current_user;
if ( ! empty( $_POST['register'] ) ) {
@ -756,6 +755,9 @@ function woocommerce_process_registration() {
return;
}
// Get user
$current_user = get_user_by( 'id', $user_id );
// Action
do_action( 'woocommerce_created_customer', $user_id );