Auto Call a function after say 16 hours after a post is posted in wordpress website

I have a mail trigger functionality to implement, I’m using anspress wordpress plugin for question/answer thing and the scenario here is like, if a question is unanswered for say some 16 hours a mail should me triggered to a Expert Users group saying a post is unswered for such a long time.

Now I have the code for sending email and i’m retrieving the posts also which are left unanswered, But how to trigger this function 16 hours after a post is posted.

Related posts

1 comment

  1. As people stated in comments, you could set up a CRON job that only looks for questions that are unanswered and haven’t had an email sent.

    You could add a field to the questions table in the database to store whether an email has been sent or not for this question.

Comments are closed.