Forums

Adjusting cron jobs (1 post)

  1. SteveAtty
    Member
    Posted 1 month ago #

    I've worked out how to add a cron job.

    If I want to allow the user to change from the default (using a drop down list so they can't do anything silly) is the best way to unschedule it and then reschedule it?

    If I understand it properly to unschedule it I call wp_next_scheduled and pass in my hook. That returns the timestamp of the next run of my event and then I can then use that to call wp_unschedule_event

    Is that it? The documentation in the Codex is very minimal.

    Thanks.

Reply

You must log in to post.

About this Topic

Tags