User_Login_Track::can_send_delayed_email()
Method: This one have no delay
User_Login_Track::can_send_delayed_email Read More »
Source Files: includes/notifications/src/trigger/user-login-track.php
Method: This one have no delay
User_Login_Track::can_send_delayed_email Read More »
Method: A base point for monitoring the events
User_Login_Track::listen Read More »
Method: Get the last activity of an user, in greedy way.
User_Login_Track::get_last_activity Read More »
Filter Hook: If the last sent time is larger than login time, that mean the notification already sent, we use the last sent time for the loop check else we use the last_login
learndash_notifications_user_login_track_unit Read More »
Method: Loop through all the course and find all users enrolled, then check for how long they did not logged in
User_Login_Track::maybe_send_reminder Read More »
Method: Return an array of users ids from the course provided.
User_Login_Track::get_users_ids_from_course Read More »
Method: Return an array which contains the users => the courses they enrolled.
User_Login_Track::get_users_and_courses Read More »
Method: Store the last time the user logged in.
User_Login_Track::track_logged_time Read More »
Class: We going to monitor when an user logged in, then check if they have any course enrollment, we schedule a hook to notify them via the queue table.