ThemeHigh
  • Plugins
  • Documentation
  • Support
  • Partners
  • Login
  • Getting Started
    • Custom Hooks
    • How to Add Fields Created Using ...
    • Overview...
    • Add a New Email Template
    • How to Add WooCommerce Hooks in Email Template?
    • Get Template Preview and Send Test Emails
    • YITH Gift Card Compatability
    • How to Customize Sample Templates?
    • Available Placeholders and Plugin Compatibility
    • WPML Compatibility
    • How to Set Up Email Mapping?
    • Back in Stock Notifier Plugin Compatibility
    • How to Import/Export Email Templ...
  • Compatible Plugins
    • Plugins...

Documentation/Email Customizer for WooCommerce/Custom Hooks

Custom Hooks

Last updated on November 24, 2022

Apart from these hooks, the WooCommerce hooks section also includes an option known as a custom hook. This action hook allows you to add dynamic content to your email template. Using this custom hook, you can provide order meta fields, include checkout field values, add the current email status like on hold, processing, and much more. Also, it allows the users to display the shortcode from third-party plugins.

To use the Custom Hook:

Open the builder > Choose a layout > WooCommerce Hooks > Custom Hook.

Once clicked on the custom hook, the {custom_hook_name} gets added to the template builder.

Click on the corresponding edit button of the custom hook to provide a unique name.

custom_hook

It is recommended to change the default name of the custom hook to an informative one to have an idea of what the hook is used for.

So, using the hook name you can write a function and insert the required fields.

This article posted in Email Customizer for WooCommerce, Getting Started, Pro Documentation

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

ThemeHigh

We develop innovative WordPress plugins and themes for e-commerce and other WordPress websites.

Resources
  • Documentation
  • Support
  • Blog
  • Bestsellers
  • Affiliates
  • Partners
Policy Information
  • Terms & Conditions
  • Privacy Policy
  • Support Policy
  • Refunds Policy
  • Licenses
Security
Payment Options

© 2021 ThemeHigh. All rights reserved.

Terms and conditions, features, support, pricing, and service options subject to change without notice.