woocommerce_registration_auth_new_customer filter-hookWC 1.0

Only redirect after a forced login - otherwise output a success notice.

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

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

Where the hook is used in WooCommerce

Usage not found.