Created
July 2, 2018 09:12
-
-
Save shadimanna/a7bc62eb3dc50145fcd331023c022cf5 to your computer and use it in GitHub Desktop.
Do not pass email to DHL API
This file contains 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
add_filter('pr_shipping_dhl_label_args', 'remove_email_number', 10, 2); | |
function remove_email_number($args, $order_id) { | |
if(isset($args['shipping_address']['email'])){ | |
unset($args['shipping_address']['email']); | |
} | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Change "email" for "phone" to unset phone number