Last active
September 20, 2019 13:58
-
-
Save xadapter/d572fe8d690605118c76d8f1ee23df94 to your computer and use it in GitHub Desktop.
Snippet to remove recipient's email address in WooCommerce UPS shipment 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 remove recipient's email address in Woocommerce UPS shipment request. | |
* Created at : 16 July 2018 | |
* Updated at : 16 July 2018 | |
* PluginHive Plugins : https://www.pluginhive.com/plugins/ | |
* Gist Link : https://gist.github.com/xadapter/d572fe8d690605118c76d8f1ee23df94 | |
*/ | |
add_filter( 'wf_ups_shipment_confirm_request_data', function($request_arr){ | |
unset($request_arr['Shipment']['ShipTo']['EMailAddress']); | |
return $request_arr; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment