woocommerce_registration_auth_new_customer

woocommerce_registration_auth_new_customer

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_registration_auth_new_customer') is found 1 times:

  • /includes/class-wc-form-handler.php line 1132
    					wc_add_notice( __( 'Your account was created successfully. Your login details have been sent to your email address.', 'woocommerce' ) );
    				}
    
    				// Only redirect after a forced login - otherwise output a success notice.
    				if ( apply_filters( 'woocommerce_registration_auth_new_customer', true, $new_customer ) ) {
    					wc_set_customer_auth_cookie( $new_customer );
    
    					if ( ! empty( $_POST['redirect'] ) ) {
    						$redirect = wp_sanitize_redirect( wp_unslash( $_POST['redirect'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    					} elseif ( wc_get_raw_referer() ) {
    						$redirect = wc_get_raw_referer();