WordPress filter hook
woocommerce_registration_auth_new_customer
Defined by WooCommerce and fired by 6 plugins in total, running on 7.3M+ sites between them.
How to use woocommerce_registration_auth_new_customer
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'woocommerce_registration_auth_new_customer', function( $value, $new_customer ) {
// Change $value here.
return $value;
}, 10, 2 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
6 plugins that fire woocommerce_registration_auth_new_customer
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
apply_filters( 'woocommerce_registration_auth_new_customer', true, $new_customer )includes/class-wc-form-handler.php:1399 -
Blocksy Companion300,000+ installs
apply_filters( 'woocommerce_registration_auth_new_customer', true, $errors )framework/features/account-auth.php:232 -
SMS Alert3,000+ installs
apply_filters( 'woocommerce_registration_auth_new_customer', true, $new_customer )handler/forms/woocommerce/wc-registration.php:813 -
Chat On Desk Order NotificationsFewer than 10 installs
apply_filters( 'woocommerce_registration_auth_new_customer', true, $new_customer )handler/forms/woocommerce/wc-registration.php:769 -
Well Done Suite ConnectorFewer than 10 installs
apply_filters( 'woocommerce_registration_auth_new_customer', true, $customer_id )includes/class-welldosu-connector-portal.php:620 -
Single Page ShoppingFewer than 10 installs
apply_filters( 'woocommerce_registration_auth_new_customer', true, $new_customer )includes/class-awcs-form-handler.php:403
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.