Email Hooks
Last updated
Was this helpful?
YayMail supports inserting custom content into WooCommerce transactional emails using predefined WooCommerce hooks and custom hooks. This gives you full control over where and how your content shows up inside each email.
YayMail includes built-in support for the following standard WooCommerce email action hooks:
woocommerce_email_before_order_tableDescription: Inserts content before the order table appears in the email.
Use Case: Great for adding notes, custom greetings, or promotional content at the top of order confirmation emails.
Applies to: All WooCommerce transactional emails that contain order details.
woocommerce_email_after_order_tableDescription: Inserts content after the order table in the email.
Use Case: Useful for adding instructions, links to support, or custom messages post order summary.
Applies to: All emails with order content (like processing, completed, on-hold, etc.)
yaydp_on_sale_productsDescription: A custom YayMail hook, from another YayCommerce plugin called 'YayPricing Dynamic Pricing extensions'.
Use Case: Display on-sale or discounted product lists in emails using YayPricing integration.
Applies to: Specific email templates or integrations when dynamic discounts are enabled.
Last updated
Was this helpful?
Was this helpful?