Reply 291294 to: Problem with Email Builder not displaying 3rd party shortcodes content

Avatar: holly
holly
Participant
June 18, 2021 at 08:00

Hi has this been changed ? I’m using flexible checkout fields pro with woocommerce do bring up a delivery date – very important. I’ve added this code in functions file – but still showing nothing

/**
* 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[‘Select your desired date’] = array(
‘label’ => __( ‘Select your desired date’ ),
‘value’ => get_post_meta( $order->id, ‘_order_custom_delivery_date’, true ),
);
return $fields;
}

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.