WC_Customer::is_customer_outside_base()
Is customer outside base country (for tax purposes)?
Метод класса: WC_Customer{}
Хуков нет.
Возвращает
true|false
.
Использование
$WC_Customer = new WC_Customer(); $WC_Customer->is_customer_outside_base();
Код WC_Customer::is_customer_outside_base() WC Customer::is customer outside base WC 9.4.2
public function is_customer_outside_base() { list( $country, $state ) = $this->get_taxable_address(); if ( $country ) { $default = wc_get_base_location(); if ( $default['country'] !== $country ) { return true; } if ( $default['state'] && $default['state'] !== $state ) { return true; } } return false; }