Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // manage fields in customer email
- // code goes in functions.php for your child theme
- add_filter( 'woocommerce_email_customer_details_fields', 'my_function', 40, 3);
- function my_function($fields, $sent_to_admin, $order ) {
- if (!$sent_to_admin) {
- $fields["billing_email"]["value"] = 'Redacted';
- $fields["billing_phone"]["value"] = 'Redacted';
- }
- return $fields;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement