-
-
Save yehudah/b8e808acd7defd1accee to your computer and use it in GitHub Desktop.
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
| /** | |
| * Add the field to order emails | |
| **/ | |
| add_filter('woocommerce_email_order_meta_keys', 'my_custom_checkout_field_order_meta_keys'); | |
| function my_custom_checkout_field_order_meta_keys( $keys ) { | |
| $keys[‘My Field 1′] = ‘_my_field_1; | |
| $keys[‘My Field 2′] = ‘_my_field_2′; | |
| return $keys; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment