Merge pull request #6717 from bryceadams/master

Add filter for registration auth cookie #6707
This commit is contained in:
Mike Jolley 2014-11-11 03:44:54 -08:00
commit b5f359b22a
1 changed files with 3 additions and 1 deletions

View File

@ -903,7 +903,9 @@ class WC_Form_Handler {
return; return;
} }
if ( apply_filters( 'woocommerce_registration_auth_new_customer', true, $new_customer ) ) {
wc_set_customer_auth_cookie( $new_customer ); wc_set_customer_auth_cookie( $new_customer );
}
// Redirect // Redirect
if ( wp_get_referer() ) { if ( wp_get_referer() ) {