I'm creating a listing site. One of the custom fields added to the the custom post type is a date field with slug "license-expiration". We would like to send an email to the user who created the listing on the day their license expires so they can update it.
**Is there any documentation that you are following?**
So many questions on this but these are the first two:
1. Should I be using cred_notification_event_type or wp_mail?
2. Think I got the cron part figured out but not sure how to check if the date is past.
I don't think post expiration will work in this case. The notification needs to be based on a custom date field vs a length of time. The custom date field will be different for each user.
For example, someone could sign up for a year but their license expires in two months, they need to get the reminder when their license expires in two months, not when their subscription ends in one year. Their post would still remain active they just are no longer "verified" since their license expired.
The issue is that even if the license is expired the posts should still be visible on the site. We don't want them unpublished for that, they just lose a "verified" badge if the license is expired. From my understanding post expiration will take the post down? That's why it didn't seem like the right solution.
The issue is that even if the license is expired the posts should still be visible on the site. We don't want them unpublished for that, they just lose a "verified" badge if the license is expired.
==>
AS you can see with the following screenshot: You can select what post status you want to keep when post is expired:
- hidden link
I do still need help but have not yet had a chance to try out the latest links. I think this will work though now that I know I can keep the same published state. I will be able to work on this tomorrow and will let you know how it goes.