woocommerce_new_customer_data filter-hook . WC 1.0
Usage
add_filter( 'woocommerce_new_customer_data', 'filter_function_name_7404' ); function filter_function_name_7404( $array_merge ){ // filter... return $array_merge; }
- $array_merge
- -
Where the hook is called
woocommerce_new_customer_data
woocommerce_new_customer_data
woocommerce/includes/wc-user-functions.php 86-97
$new_customer_data = apply_filters( 'woocommerce_new_customer_data', array_merge( $args, array( 'user_login' => $username, 'user_pass' => $password, 'user_email' => $email, 'role' => 'customer', ) ) );
woocommerce/packages/woocommerce-blocks/src/Domain/Services/CreateAccount.php 237-248
$new_customer_data = apply_filters( 'woocommerce_new_customer_data', array( 'is_checkout_block_customer_signup' => true, 'user_login' => $username, 'user_pass' => $password, 'user_email' => $user_email, 'first_name' => $first_name, 'last_name' => $last_name, 'role' => 'customer', ) );