[Resolved] Email to post author

Hi, Amit here, I am the Toolset Support Manager, our current ticket queue is calm and I'd like to encourage you to use our new chat support option

In order to try it out please notice that when you open a ticket (while there's availability) you will be able to choose between chat and a normal ticket, both lanes lead to the same supporters and if we decide in chat that the issue needs more time we'll transform it into a normal email ticket for you, so nothing is lost

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.


This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 3 months, 1 week ago.

Assigned support staff: Luo Yang.


Hi Luo,

I've the last question on my process.
If you remeber I built a booking process from an accommodation custom post type.

I used CRED to set the price of a product, and clicking on the button the product is added to the cart.

Everything works very god.

My problem now is only the last email, when the order is complete. By default woocomeerce send the email as set in the woocommerce email setting.

But I need to send the email to the author of the custom post accommodation.

How can I do?


Luo Yang

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)


I assume we are talking about a Toolset post form for creating "booking" post, as you can see this "order is complete" email is sent by Woocommerce plugin, so there isn't such a built-in feature within Toolset form plugin, it needs custom codes,
Here are my suggestion, you can try with filter hook "woocommerce_email_recipient_new_order", see similar thread:

More help:

Is there any relationship between post type "accommodation" and "booking", if there isn't, I suggest you setup one- post type relationship between them, then in the "order completed" email , you can get the "booking" post ID as this:

Then get "accommodation" post ID with function toolset_get_related_post()