This plugin allows you to add content to the order emails per product. This is useful if a purchased product requires some more explanation.
If you want to add custom content to your order emails, on a per-product basis, this is
the plugin for you. With this plugin, you can add text to your order emails for each product
that your customer bought. Only the content for the bought products will be added to the
email.
This is useful if you want to send some extra info to the customer, depending on the products
they bought.
Develop in Git and on GitHub as normal. Then:
product-specific-email-content-for-woocommerce.php
to the /wp-content/plugins/
directoryYes! There are two actions that you can hook into:
product_specific_email_content_before_content
product_specific_email_content_after_content
Both accept a two arguments:
$item
: the current Order item$product
: the current ProductWith these hooks, you can add extra info before or after the content defined through this plugin.
product_specific_email_content_before_content
and product_specific_email_content_after_content