WordPress at Your Fingertips
function is not described

WC_Customer::is_customer_outside_base() public WC 1.0

Is customer outside base country (for tax purposes)?

{} It's a method of the class: WC_Customer{}

No Hooks.

Return

true|false.

Usage

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

Code of WC_Customer::is_customer_outside_base() WC 6.1.1

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