WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Customer::get_taxable_address() public WC 1.0

Get taxable address.

{} Это метод класса: WC_Customer{}

Возвращает

Массив.

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

$WC_Customer = new WC_Customer();
$WC_Customer->get_taxable_address();

Код WC_Customer::get_taxable_address() WC 4.7.0

<?php
public function get_taxable_address() {
	$tax_based_on = get_option( 'woocommerce_tax_based_on' );

	// Check shipping method at this point to see if we need special handling.
	if ( true === apply_filters( 'woocommerce_apply_base_tax_for_local_pickup', true ) && count( array_intersect( wc_get_chosen_shipping_method_ids(), apply_filters( 'woocommerce_local_pickup_methods', array( 'legacy_local_pickup', 'local_pickup' ) ) ) ) > 0 ) {
		$tax_based_on = 'base';
	}

	if ( 'base' === $tax_based_on ) {
		$country  = WC()->countries->get_base_country();
		$state    = WC()->countries->get_base_state();
		$postcode = WC()->countries->get_base_postcode();
		$city     = WC()->countries->get_base_city();
	} elseif ( 'billing' === $tax_based_on ) {
		$country  = $this->get_billing_country();
		$state    = $this->get_billing_state();
		$postcode = $this->get_billing_postcode();
		$city     = $this->get_billing_city();
	} else {
		$country  = $this->get_shipping_country();
		$state    = $this->get_shipping_state();
		$postcode = $this->get_shipping_postcode();
		$city     = $this->get_shipping_city();
	}

	return apply_filters( 'woocommerce_customer_taxable_address', array( $country, $state, $postcode, $city ) );
}