Created
May 8, 2015 12:43
-
-
Save woogist/2e89c92a3f7a75b98dd1 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; | |
| } |
The correct code is here https://gist.github.com/mikejolley/1547491
Thank you!
hi every body
i can't use this code
after i user this code in function.php i receive an FATAL ERROR
how can i fix this problem ?
thank
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Got a feeling this needs tweaking slightly guys, there's some odd quote characters in there that are messed up under the raw view