Merge pull request #6717 from bryceadams/master
Add filter for registration auth cookie #6707
This commit is contained in:
commit
b5f359b22a
|
@ -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() ) {
|
||||||
|
|
Loading…
Reference in New Issue