Forums

wp_schedule_single_event Not seeming to work (1 post)

  1. foldor
    Member
    Posted 2 years ago #

    Hello everyone,
    I am modifying an old plugin called subscribable to suit the needs of my site. It pulls data from a cformsII database and emails the subscribers every time a new post is made to the site. (Don't worry it's only a couple of posts per year)

    The problem I am having is this chunk of code

    wp_clear_scheduled_hook('subscribable_send_updates');
    wp_schedule_single_event(time(), 'subscribable_send_updates', $postID)

    It does not seem to properly run the event at all. I know everything else works because if I just call the function manually it works, but I was hoping to keep the scheduled events if possible, because if there any failures I do try to reschedule the event for the future.

    Can anyone tell me why it may not be working?

    Thanks in advance,
    foldor

Topic Closed

This topic has been closed to new replies.

About this Topic