woocommerce_countries_shipping_to_prefix, $return, $country_code
woocommerce_countries_shipping_to_prefix, $return, $country_code
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_countries_shipping_to_prefix, $return, $country_code') is found 1 times:
- /includes/class-wc-countries.php line 496
$country_code = $country_code ? $country_code : WC()->customer->get_shipping_country(); $countries = array( 'AE', 'CZ', 'DO', 'GB', 'NL', 'PH', 'US', 'USAF' ); $return = in_array( $country_code, $countries, true ) ? _x( 'to the', 'shipping country prefix', 'woocommerce' ) : _x( 'to', 'shipping country prefix', 'woocommerce' ); return apply_filters( 'woocommerce_countries_shipping_to_prefix', $return, $country_code ); } /** * Prefix certain countries with 'the'. * * @param string $country_code Country code.