Skip Navigation

[Resolved] Sending notification to all child post authors

This support ticket is created 2 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 2 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#2352393

Tell us what you are trying to do?

I have a parent post type call "Job" and a child post type call "Application".

Within the parent post I have a custom field called "Notification".

The notification field is updated through and edit front end post form. When it is updated I would like the contents of the notification to be sent to all "Application" authors.

Is this feasible?

#2353673

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

You will have to use the Toolset Form's hook "cred_notification_recipients" to add the notification emails on fly and get the related child post autors:

Please check the following related ticket where I shared the solution, If you will require further help, please feel free to get in touch with me. Please note that you will have to set the dynamic parent post ID:
- https://toolset.com/forums/topic/send-email-notification-to-all-child-posts-usersauthors/#post-1279475

More info:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_notification_recipients

You should try to get prent ID and based on the parent ID try to find all child posts using the Toolset post-relationship API function: toolset_get_related_posts
=> https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_get_related_posts