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

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

add_filter( 'woocommerce_my_account_get_addresses', 'wp_kama_woocommerce_my_account_get_addresses_filter', 10, 2 );

/**
 * Function for `woocommerce_my_account_get_addresses` filter-hook.
 * 
 * @param  $array       
 * @param  $customer_id 
 *
 * @return 
 */
function wp_kama_woocommerce_my_account_get_addresses_filter( $array, $customer_id ){

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

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

В файле: /templates/myaccount/my-address.php
woocommerce_my_account_get_addresses
woocommerce/templates/myaccount/my-address.php 23-30
$get_addresses = apply_filters(
	'woocommerce_my_account_get_addresses',
	array(
		'billing'  => __( 'Billing address', 'woocommerce' ),
		'shipping' => __( 'Shipping address', 'woocommerce' ),
	),
	$customer_id
);
woocommerce/templates/myaccount/my-address.php 32-38
$get_addresses = apply_filters(
	'woocommerce_my_account_get_addresses',
	array(
		'billing' => __( 'Billing address', 'woocommerce' ),
	),
	$customer_id
);

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

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