Created
February 13, 2020 06:09
-
-
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
This file contains hidden or 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
| //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