Add context to countries shipping to prefix (#36254)
Closes https://github.com/woocommerce/woocommerce/issues/36242
This commit is contained in:
parent
d9daad3e9c
commit
0f78e32216
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: enhancement
|
||||
|
||||
Add context to countries shipping to prefix
|
|
@ -410,7 +410,7 @@ class WC_Countries {
|
|||
public function shipping_to_prefix( $country_code = '' ) {
|
||||
$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 ) ? __( 'to the', 'woocommerce' ) : __( 'to', 'woocommerce' );
|
||||
$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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue