WC_Countries::estimated_for_prefix PHP Метод

estimated_for_prefix() публичный Метод

Prefix certain countries with 'the'
public estimated_for_prefix ( $country_code = '' ) : string
Результат string
    public function estimated_for_prefix($country_code = '')
    {
        $country_code = $country_code ? $country_code : $this->get_base_country();
        $countries = array('GB', 'US', 'AE', 'CZ', 'DO', 'NL', 'PH', 'USAF');
        $return = in_array($country_code, $countries) ? __('the', 'woocommerce') . ' ' : '';
        return apply_filters('woocommerce_countries_estimated_for_prefix', $return, $country_code);
    }