Last active
November 16, 2018 05:29
-
-
Save varun-pluginhive/3b56ce74f7dcd9af9282a6e7c7484fa7 to your computer and use it in GitHub Desktop.
Snippet to change Destination Country in UPS confirm request. WooCommerce UPS Shipping Plugin with Print Label - https://www.pluginhive.com/product/woocommerce-ups-shipping-plugin-with-print-label/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Snippet to change Destination Country in UPS confirm request. | |
| * Created at : 16 Nov 2018 | |
| * Updated at : 16 Nov 2018 | |
| * PluginHive Plugins : https://www.pluginhive.com/plugins/ | |
| * Gist Link : https://gist.github.com/varun-pluginhive/3b56ce74f7dcd9af9282a6e7c7484fa7 | |
| */ | |
| add_filter( 'wf_ups_shipment_confirm_request_data', function( $request ){ | |
| $request['Shipment']['ShipTo']['Address']['CountryCode'] = 'US'; | |
| return $request; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment