• hello,
    i want to call a function every x minute(s) in my plugin automatically. how i do it?
    i see wp_schedule_event() , but it run every 1 hour/12 hours and 24 hours
    i want to run every 10 minutes for example.

    thanks

Viewing 1 replies (of 1 total)
  • I’m not aware of another way of doing. However, running something every few minutes would have a performance impact, which may be why once an hour is the minimum.

    As you may also notice on the codex entry for wp_schedule_event, it only triggers when someone visits the site, so unless you have a high and steady rate of traffic, you may find that if it’s schedule for every few minutes that it may get regularly missed.

Viewing 1 replies (of 1 total)
  • The topic ‘how to call a function every x minute(s) ?’ is closed to new replies.