Skip to content

Instantly share code, notes, and snippets.

@shadimanna
Last active August 19, 2020 18:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shadimanna/d1c32e93dad8008dddd9151b69e0994c to your computer and use it in GitHub Desktop.
Save shadimanna/d1c32e93dad8008dddd9151b69e0994c to your computer and use it in GitHub Desktop.
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

it doesnt work..

@mergimrexha
Copy link

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