Variable Custom Shortcodes for Processing Order Template
-
Hello,
we would like to add some custom shortcodes to your amazing plugin.
Can you give us a hint, what we need to change to trigger the “processing Order Email”?
“WC_Emails” are the placeholder we need to adapt here.
add_filter( 'kadence_woomail_order_body_text', 'custom_function_for_billing_email', 10, 2 ); function custom_function_for_billing_email( $text, $order ) { if ( is_a( $order, 'WC_Emails' ) ) { $text = str_replace( '{billing_amount}', $order->get_formatted_order_total(), $text ); } return $text; }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Variable Custom Shortcodes for Processing Order Template’ is closed to new replies.