WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

ShippingLabelBannerDisplayRules::store_in_us_and_usd() private WC 1.0

Checks if the store is in the US and has its default currency set to USD.

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

No Hooks.

Return

true|false. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->store_in_us_and_usd();

Code of ShippingLabelBannerDisplayRules::store_in_us_and_usd() WC 5.3.0

<?php
private function store_in_us_and_usd() {
	$base_currency = get_woocommerce_currency();
	$base_location = wc_get_base_location();

	return in_array( $base_currency, $this->supported_currencies, true ) && in_array( $base_location['country'], $this->supported_countries, true );
}