The X-Days trigger-based notifications are designed to send emails based on time-based conditions, such as inactivity, course expiry reminders, or lack of progress. Since these triggers depend on time calculations rather than real-time LearnDash events, they are processed through a scheduled background task.
To maintain site performance and avoid unnecessary processing, these triggers are checked once per day using the system scheduler.
During this daily check, the system evaluates the configured conditions for each trigger and sends notifications only when the criteria are met. The following triggers are evaluated during this process:
- User hasn’t logged in for X days: The system checks the user’s last login activity. If the number of days since the last login matches the configured X days, the notification email is sent.
- User hasn’t made progress in Course since X days: The system checks the learner’s last course activity (such as a lesson, topic, or quiz progress). If no activity has occurred for the specified X days, the notification is sent.
- X days before a course expires: The system checks the course access expiry date for enrolled users. If the course is going to expire in the configured X days, a reminder email is sent.
- X days after a course expires: The system checks if the course access for a user has already expired and whether the specified X days have passed since the expiry. If the condition is met, the notification email is sent.
