WC_Countries::tax_or_vat()publicWC 1.0

Correctly name tax in some countries VAT on the frontend.

Метод класса: WC_Countries{}

Хуки из метода

Возвращает

Строку.

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

$WC_Countries = new WC_Countries();
$WC_Countries->tax_or_vat();

Код WC_Countries::tax_or_vat() WC 8.7.0

public function tax_or_vat() {
	$return = in_array( $this->get_base_country(), $this->get_vat_countries(), true ) ? __( 'VAT', 'woocommerce' ) : __( 'Tax', 'woocommerce' );

	return apply_filters( 'woocommerce_countries_tax_or_vat', $return );
}