I have a housing directory. I've enabled auto-expiry for the posts (adds), which is 90 day after first publication. I've also setted up email notifications to be sent 60 days, 30 days and 15 days before expiration date.
My first problem is that even if the add is put on draft mode, the email notifications are still sent to the add owners. Is there a way to stop the emails notification or to auto-disabled expiry date when putting the post on draft mode?
My second problem is that I've setted up the post to be automatically translated when created (FR to EN). Therefore, add owners are receiving notification in double, one for the French post and one for the English post, even though the EN post is a perfect duplicate of FR one. Is there a way to set-up notification to be sent only once?
What is the link to your site?
hidden link
Hello,
There isn't such kind of built-in features, you might consider custom codes, for example:
Use filter hook "cred_custom_notification_event_type_condition" to trigger a custom PHP function:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_custom_notification_event_type_condition
Check that specific post's status is draft, then return result false:
https://developer.wordpress.org/reference/functions/get_post_status/
For Q2) Same as above, you can use filter hook "cred_custom_notification_event_type_condition" to check if current post isn't a duplicated post, then return result true