Cron for update status

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 1 year, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #42907

    Hi, I’ve created a custom status for reservations (https://wp-event-organiser.com/forums/topic/add-custom-booking-status/) so that I can remove them from the list displayed on the administration screen when they’ve “passed” (the recurring event has passed). Is it possible to create a Cron (or other) task so that every day the system scans the reservations and automatically changes the status when the event date has passed?

    Fernand Dutilleux
    #42926

    Hi Fernand,

    Yes, WordPress provides a psuedo-cron interface (you can alternatively configure a cron task on the server) which while it doesn’t guarantee timings for the task being executed, will probably be good enough for your use case. The official documentation for configuring a cron task can be found here: https://developer.wordpress.org/plugins/cron/

    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.