Add field to new account email
-
Hi,
I found this code on your website/** * Add a custom field (in an order) to the emails */ add_filter( 'woocommerce_email_order_meta_fields', 'custom_woocommerce_email_order_meta_fields', 10, 3 ); function custom_woocommerce_email_order_meta_fields( $fields, $sent_to_admin, $order ) { $fields['hear_about_us'] = array( 'label' => __( 'Hear About Us' ), 'value' => get_post_meta( $order->id, 'hear_about_us', true ), ); return $fields; }
But it add’s only a field to a new order mail. I want to add a field to the new account email.
Can someone help?
thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add field to new account email’ is closed to new replies.