WordPress action hook
woocommerce_stripe_add_customer
Fired by 4 WordPress plugins, running on 710K+ sites between them.
“Fires after a Stripe customer is created.”
How to use woocommerce_stripe_add_customer
It's an action: your callback runs at that point and receives 2 arguments. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'woocommerce_stripe_add_customer', function( $args, $response ) {
// Your code runs here.
}, 10, 2 );Argument names come from WooCommerce Stripe Payment Gateway's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
4 plugins that fire woocommerce_stripe_add_customer
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce Stripe Payment Gateway700,000+ installs
do_action( 'woocommerce_stripe_add_customer', $args, $response )includes/class-wc-stripe-customer.php:555 -
WCFM Marketplace10,000+ installs
do_action( 'woocommerce_stripe_add_customer', $args, $response )includes/wcfm-stripe/class-wcfm-stripe-customer.php:151 -
Marketing 360® Payments for WooCommerce30+ installs
do_action( 'woocommerce_stripe_add_customer', $args, $response )includes/class-wc-stripe-customer.php:167 -
Payment Gateway Stripe for Easy Digital Downloads10+ installs
do_action( 'woocommerce_stripe_add_customer', $args, $response )src/StripeCustomer.php:124
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.