woocommerce_registration_auth_new_customer хук-фильтрWC 1.0

Использование

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
-

Где вызывается хук

WC_Form_Handler::process_registration()
woocommerce_registration_auth_new_customer
woocommerce/includes/class-wc-form-handler.php 1132
if ( apply_filters( 'woocommerce_registration_auth_new_customer', true, $new_customer ) ) {

Где используется хук в WooCommerce

Использование не найдено.