Tell us what you are trying to do?
We want to be able to allow subscribers to get notified when a new post/entry is made on the custom post they subscribe to. Can you send a guide on where to start?
Is there any documentation that you are following?
I checked some support cases in the forum about this but wasn't really able to find a more detailed explaination.
Is there a similar example that we can see?
Similar to the functionality discussed here hidden link but instead of category we want to allow subscription to our different post types.
What is the link to your site?
hidden link
Hello,
There isn't such kind of built-in feature within Toolset plugins.
It needs custom codes, for example:
1) Create some custom user checkbox fields, each checkbox field is corresponding to one custom post type
https://toolset.com/documentation/customizing-sites-using-php/creating-custom-user-profiles/#adding-custom-fields-to-user-profiles
2) After user login into your website, he can update his profile, and enable above checkbox fields, and subscribe to different post types.
3) Setup post forms to create new post of your custom post types, add email notifications setting:
https://toolset.com/course-lesson/send-notifications-when-someone-submits-the-form/
When someone fill and submit above post forms, use filter hook "cred_notification_recipients" to trigger a custom PHP function:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_notification_recipients
In this PHP function, get the new post's post type value,
https://developer.wordpress.org/reference/functions/get_post_type/
and use this post type value to get users by the custom user field of step 1)
https://developer.wordpress.org/reference/functions/get_users/
Then add those users email addresses into the "recipients" results
For your reference.