woocommerce_registration_auth_new_customer
Usage
add_filter( 'woocommerce_registration_auth_new_customer', 'wp_kama_woocommerce_registration_auth_new_customer_filter', 10, 2 ); /** * Function for `woocommerce_registration_auth_new_customer` filter-hook. * * @param $true * @param $new_customer * * @return */ function wp_kama_woocommerce_registration_auth_new_customer_filter( $true, $new_customer ){ // filter... return $true; }
- $true
- -
- $new_customer
- -
Where the hook is called
woocommerce_registration_auth_new_customer
woocommerce/includes/class-wc-form-handler.php 1143
if ( apply_filters( 'woocommerce_registration_auth_new_customer', true, $new_customer ) ) {