IppFunctions::has_store_specified_country_currency()public staticWC 1.0

Checks if the store has specified country location and currency used.

Method of the class: IppFunctions{}

No Hooks.


true|false. true if specified country and currency match the store's ones. false otherwise


$result = IppFunctions::has_store_specified_country_currency( $country, $currency ): bool;
$country(string) (required)
country to compare store's country with.
$currency(string) (required)
currency to compare store's currency with.

IppFunctions::has_store_specified_country_currency() code WC 7.1.0

public static function has_store_specified_country_currency( string $country, string $currency ): bool {
	return ( WC()->countries->get_base_country() === $country && get_woocommerce_currency() === $currency );