Created
February 13, 2020 06:08
-
-
Save webtoffee-git/0a8459b5a627e74bcafef28290f874dc to your computer and use it in GitHub Desktop.
Hide Email 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 email | |
| add_filter('wf_alter_billing_email', 'wt_alter_billing_email', 10,2); | |
| function wt_alter_billing_email($email, $order_id){ | |
| $email = ''; | |
| return $email; | |
| } | |
| //Hide email text | |
| add_filter('wf_alter_billing_email_text', 'wt_alter_billing_email_text', 10,1); | |
| function wt_alter_billing_email_text($text){ | |
| $text = ''; | |
| return $text; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment