Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Do not pass email to DHL API
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;
}
@shadimanna
Copy link
Author

shadimanna commented Apr 14, 2020

Change "email" for "phone" to unset phone number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment