Add custom token to email template

Hi,

If you are referring not to WooCommerce emails, but to those sent to the vendor, we recommend using these hooks:

hivepress/v1/emails/order_received
hivepress/v1/emails/order_completed

Also, if you need to send to an action, you can use the same hooks, just add /send at the end.

Using these hooks, you can add any tokens to the tokens array, based on those that are already available (and you can check which ones are available using: var_dump($email['tokens']) or error_log(print_r($email['tokens'], true)), and then view them in the logs after they are sent).

​I hope this is helpful to you.