Hi,
I tried it but it didnd’t worked. I pasted the following via snippet in:
add_filter( ‘kadence_woomail_order_body_text’, ‘custom_function_for_billing_wooccm12’, 10, 2 );
function custom_function_for_billing_wooccm12( $text, $order ) {
if ( is_a( $order, ‘WC_Order’ ) ) {
$text = str_replace( ‘{billing_wooccm12}’, $order->get_billing_wooccm12(), $text );
}
return $text;
}
If I use the one above error is stated if I try to design templates.
And tried also this one:
add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_styles’ );
function enqueue_parent_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
}
?>
add_filter( ‘kadence_woomail_order_body_text’, ‘custom_function_for_billing_wooccm12’, 10, 2 );
function custom_function_for_billing_wooccm12( $text, $order ) {
if ( is_a( $order, ‘WC_Order’ ) ) {
$text = str_replace( ‘{billing_wooccm12}’, $order->get_billing_wooccm12(), $text );
}
return $text;
}
No error, but placeholder is not shown in the email template setup.
Could you help?