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

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

add_filter( 'woocommerce_my_account_my_address_formatted_address', 'wp_kama_woocommerce_my_account_address_formatted_filter', 10, 3 );

/**
 * Function for `woocommerce_my_account_my_address_formatted_address` filter-hook.
 * 
 * @param  $address      
 * @param  $customer_id  
 * @param  $address_type 
 *
 * @return 
 */
function wp_kama_woocommerce_my_account_address_formatted_filter( $address, $customer_id, $address_type ){

	// filter...
	return $address;
}
$address
-
$customer_id
-
$address_type
-

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

wc_get_account_formatted_address()
woocommerce_my_account_my_address_formatted_address
woocommerce/includes/wc-account-functions.php 331
return WC()->countries->get_formatted_address( apply_filters( 'woocommerce_my_account_my_address_formatted_address', $address, $customer->get_id(), $address_type ) );

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

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