I found this link: https://www.ads-software.com/support/topic/have-billing_email-on-the-email-sent-to-customer/
I now use the code below to get the {billing_email} into my email-subject.
add_filter( 'woocommerce_email_format_string', function( $string, $email ) {
if ( ! empty( $email->object ) && is_callable( array( $email->object, 'get_billing_email' ) ) ) {
return str_replace( '{billing_email}', $email->object->get_billing_email(), $string );
}
return $string;
}, 10, 2 );
@claudiosanches can you help me or somebody to get the code for {billing_phone}
Is there also a link where to learn how to setup this kind of codes?
-
This reply was modified 2 years, 5 months ago by eddy3300.
-
This reply was modified 2 years, 5 months ago by eddy3300.