Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor ruhanirabin

    (@ruhanirabin)

    Hi there, thanks for this.. btw can you please elaborate what is the difference between redefining and adding to it 🙂

    Thread Starter ls5302

    (@ls5302)

    Hi,

    Other plugins add schedules e.g. JetPack adds a jetpack_weekly. All these schedules are stored in the same array which is passed around and added to by the cron_schedules filter. Your code is returning a new array, rather than just adding new entries to the existing array.

    I stumbled across the problem when the TablesPress auto-import plugin stopped auto-importing. It took a while but i noticed the “Every 15 minutes” schedule had vanished – it was being overwritten within the wpo_cron_update_sched method.

    I found an example on how to add schedules here:
    http://codex.wordpress.org/Function_Reference/wp_get_schedules

    Hope that help to explain it.

    Thanks.

    Plugin Contributor ruhanirabin

    (@ruhanirabin)

    I see, ok I am going to test out your code. Thank you so much for letting me know about this. Really appreciate your help 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘bug found in Scheduler code’ is closed to new replies.