woocommerce_countries_shipping_to_prefix

woocommerce_countries_shipping_to_prefix

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_countries_shipping_to_prefix') is found 1 times:

  • /includes/class-wc-countries.php line 466
    		$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.