woocommerce_update_customer_args хук-фильтрWC 3.0.0

Updates a customer in the database.

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

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
-

Список изменений

С версии 3.0.0 Введена.

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

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 193-201
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 126-134
apply_filters(
	'woocommerce_update_customer_args',
	array(
		'ID'           => $customer->get_id(),
		'role'         => $customer->get_role(),
		'display_name' => $customer->get_display_name(),
	),
	$customer
)

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

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