Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Do not pass phone number to DHL API
add_filter('pr_shipping_dhl_label_args', 'remove_phone_number', 10, 2);
function remove_phone_number($args, $order_id) {
if(isset($args['shipping_address']['phone'])){
unset($args['shipping_address']['phone']);
}
return $args;
}
@mergimrexha
Copy link

mergimrexha commented Jun 24, 2019

it doesnt work..

@mergimrexha
Copy link

mergimrexha commented Aug 21, 2019

It works but you have to update Wordpress and also the plugin for example woocommerce.

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