Need help with scheduling

Hey guys new to this forum. I’m currently working on a WordPress plugin that needs to send a email once it reaches a certain day/time. A little background about the project: its a raffle plugin that has a count down. Once the time of expiration reaches it should send a email to the winner. I looked into wp_schedule_single_event but didn’t seem to get it to work. Any suggestions would be helpful.

Heres a snippet of how i set up the wp_schuedule_single_event:

    $unixExpireDate = date("U",strtotime($expireDate));
    wp_schedule_single_event($unixExpireDate, 'set_reminder');

Nevermind I was able to get it to work.

Sponsor our Newsletter | Privacy Policy | Terms of Service