woocommerce_api_customer_billing_address хук-фильтрWC 2.2

Get customer billing address fields.

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

add_filter( 'woocommerce_api_customer_billing_address', 'wp_kama_woocommerce_api_customer_billing_address_filter' );

/**
 * Function for `woocommerce_api_customer_billing_address` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_api_customer_billing_address_filter( $array ){

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

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

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

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

WC_API_Customers::get_customer_billing_address()
woocommerce_api_customer_billing_address
woocommerce/includes/legacy/api/v3/class-wc-api-customers.php 250-262
$billing_address = apply_filters( 'woocommerce_api_customer_billing_address', array(
	'first_name',
	'last_name',
	'company',
	'address_1',
	'address_2',
	'city',
	'state',
	'postcode',
	'country',
	'email',
	'phone',
) );
woocommerce/includes/legacy/api/v2/class-wc-api-customers.php 249-261
$billing_address = apply_filters( 'woocommerce_api_customer_billing_address', array(
	'first_name',
	'last_name',
	'company',
	'address_1',
	'address_2',
	'city',
	'state',
	'postcode',
	'country',
	'email',
	'phone',
) );

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

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