• Resolved zbyneksmetana

    (@zbyneksmetana)


    Hello,

    Sorry for language mistakes.
    I want to put in an email a custom fields. Following the advice on the site woocommerce docs
    link.

    i put custom fields on email by code:

    add_filter('woocommerce_email_order_meta_keys', 'my_custom_order_meta_keys');
    
    function my_custom_order_meta_keys( $keys ) {
         $keys[] = 'Field1';
         $keys[] = 'Field2';
         $keys[] = 'Field3';
    
         return $keys;
    }

    In email i saw

    Field1: value1
    Field2: value2
    Field3: value3

    Is it possible put between fields Field1 and Field2 for example html text. For example

    Field1: value1
    <h2>Some html text </h2>
    Field2: value2
    Field3: value3

    Thanks
    Zbynek

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Custom fields with html in email’ is closed to new replies.