Title: Add code to template
Last modified: September 27, 2024

---

# Add code to template

 *  Resolved [johanlinder](https://wordpress.org/support/users/johanlinder/)
 * (@johanlinder)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/add-code-to-template/)
 * Hi.
 * I need to add this code from Trustpilot to the order-processing template.
 *     ```wp-block-code
       do_action( 'add_trustpilot_invitation', $order, $sent_to_admin, $plain_text, $email );
       ```
   
 * How do I best edit your templates?
 * Rgds / Johan
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadd-code-to-template%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [michael-levelup](https://wordpress.org/support/users/michaeltarongoy/)
 * (@michaeltarongoy)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/add-code-to-template/#post-18041425)
 * Hi Johan,
 * We can assist you on that.
 * We don’t recommend editing the template files directly. If you want to modify
   an existing template, you need to go through the child theme route.
 * So for example, if you want to override the email template for order processing,
   you would need to replicate the file from /wp-content/plugins/woocommerce/templates/
   emails/customer-processing-order.php
 * Copy and paste that on a “new folder” on your child theme. Rename the “new folder”
   into the name of the plugin you copied it from. In this case, it should be something
   like /wp-content/themes/your_child_theme/woocommerce/customer-processing-order.
   php
 * Let us know how we could help you further.
 * Kind Regards,
   Michael Taro
 *  Plugin Support [michael-levelup](https://wordpress.org/support/users/michaeltarongoy/)
 * (@michaeltarongoy)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/add-code-to-template/#post-18091636)
 * Hi Johan,
 * We just want to follow-up if you managed to resolve this already.
 * This topic has been inactive for almost a month.
 * I will close this topic and if you have further questions or need additional 
   assistance, feel free to start a new topic or refer to our Kadence Help Center
   here: [https://www.kadencewp.com/help-center](https://www.kadencewp.com/help-center)
 * Please note that you can also submit a support ticket via these channels.
    - FREE Users: [https://www.kadencewp.com/free-support-tickets/](https://www.kadencewp.com/free-support-tickets/)
    - Premium Users: [https://www.kadencewp.com/premium-support-tickets/](https://www.kadencewp.com/premium-support-tickets/)
 * Thank you for your understanding!
    Kind Regards,Michael Taro

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

The topic ‘Add code to 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [michael-levelup](https://wordpress.org/support/users/michaeltarongoy/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/add-code-to-template/#post-18091636)
 * Status: resolved