Title: Variable Custom Shortcodes for Processing Order Template
Last modified: October 28, 2022

---

# Variable Custom Shortcodes for Processing Order Template

 *  [espox](https://wordpress.org/support/users/espox/)
 * (@espox)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/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)

 *  Thread Starter [espox](https://wordpress.org/support/users/espox/)
 * (@espox)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/variable-custom-shortcodes-for-processing-order-template/#post-16142697)
 * Edit: We fixed it, but can you say to us how to apply this filter to the additional_content
   as well?
 *  Thread Starter [espox](https://wordpress.org/support/users/espox/)
 * (@espox)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/variable-custom-shortcodes-for-processing-order-template/#post-16142765)
 * Edit 2: When we just copy the original email template to our child theme (we 
   dont change nothing) the body text is missing. Is there any conflict?
 *  [hannah](https://wordpress.org/support/users/hannahritner/)
 * (@hannahritner)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/variable-custom-shortcodes-for-processing-order-template/#post-16165084)
 * Hey,
    Thanks for reaching out and apologies for the delay! I’m not sure how to
   apply your filter to the additional_content, but I can get some insight from 
   a dev. As for the body text, are you able to manually add this from the customizer?
 * Kindly,
    Hannah

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Variable Custom Shortcodes for Processing Order Template’ is closed to
new replies.

 * ![](https://ps.w.org/kadence-woocommerce-email-designer/assets/icon-256x256.png?
   rev=3115863)
 * [Kadence WooCommerce Email Designer](https://wordpress.org/plugins/kadence-woocommerce-email-designer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/kadence-woocommerce-email-designer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/kadence-woocommerce-email-designer/)
 * [Active Topics](https://wordpress.org/support/plugin/kadence-woocommerce-email-designer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/kadence-woocommerce-email-designer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/kadence-woocommerce-email-designer/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [hannah](https://wordpress.org/support/users/hannahritner/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/variable-custom-shortcodes-for-processing-order-template/#post-16165084)
 * Status: not resolved