Skip to content

Instantly share code, notes, and snippets.

@webtoffee-git
Created February 13, 2020 06:09
Show Gist options
  • Select an option

  • Save webtoffee-git/b8895dff2a9f4ae80d0cc996e7ed605b to your computer and use it in GitHub Desktop.

Select an option

Save webtoffee-git/b8895dff2a9f4ae80d0cc996e7ed605b to your computer and use it in GitHub Desktop.
Hide phone number from shipping label using - WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels by WebToffee
//Hide phone number
add_filter('wf_alter_billing_phone_number', 'wt_alter_billing_phone_number', 10,2);
function wt_alter_billing_phone_number($number, $order_id){
$number = '';
return $number;
}
//Hide phone number text
add_filter('wf_alter_billing_phone_text', 'wt_alter_billing_phone_text', 10,1);
function wt_alter_billing_phone_text($text){
$text = '';
return $text;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment