WC_Countries::estimated_for_prefix()publicWC 1.0

Prefix certain countries with 'the'.

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

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

Возвращает

Строку.

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

$WC_Countries = new WC_Countries();
$WC_Countries->estimated_for_prefix( $country_code );
$country_code(строка)
Country code.
По умолчанию: ''

Код WC_Countries::estimated_for_prefix() WC 8.7.0

public function estimated_for_prefix( $country_code = '' ) {
	$country_code = $country_code ? $country_code : $this->get_base_country();
	$countries    = array( 'AE', 'CZ', 'DO', 'GB', 'NL', 'PH', 'US', 'USAF' );
	$return       = in_array( $country_code, $countries, true ) ? __( 'the', 'woocommerce' ) . ' ' : '';

	return apply_filters( 'woocommerce_countries_estimated_for_prefix', $return, $country_code );
}