WC_Customer::is_customer_outside_base()

Is customer outside base country (for tax purposes)?


Description Description


Return Return

(bool)


Top ↑

Source Source

File: includes/class-wc-customer.php

	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;
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.