woocommerce_update_customer_args filter-hookWC 3.0.0

Updates a customer in the database.

Usage

add_filter( 'woocommerce_update_customer_args', 'wp_kama_woocommerce_update_customer_args_filter' );

/**
 * Function for `woocommerce_update_customer_args` filter-hook.
 * 
 * @param  $customer 
 *
 * @return 
 */
function wp_kama_woocommerce_update_customer_args_filter( $customer ){

	// filter...
	return $customer;
}
$customer
-

Changelog

Since 3.0.0 Introduced.

Where the hook is called

WC_Customer_Data_Store::update()
woocommerce_update_customer_args
WC_Customer_Data_Store::create()
woocommerce_update_customer_args
woocommerce/includes/data-stores/class-wc-customer-data-store.php 192-200
apply_filters(
	'woocommerce_update_customer_args',
	array(
		'ID'           => $customer->get_id(),
		'user_email'   => $customer->get_email(),
		'display_name' => $customer->get_display_name(),
	),
	$customer
)
woocommerce/includes/data-stores/class-wc-customer-data-store.php 125-133
apply_filters(
	'woocommerce_update_customer_args',
	array(
		'ID'           => $customer->get_id(),
		'role'         => $customer->get_role(),
		'display_name' => $customer->get_display_name(),
	),
	$customer
)

Where the hook is used in WooCommerce

Usage not found.