Change a custom field value after X number of seconds
You’ll need two meta fields: the ‘available’ field, and a ‘lastchecked’ field that contains a Unix timestamp for when the box was checked. Then, you can use wp_cron (assuming your site has enough traffic; but most sites will get at least one visit an hour; if not, you can always set up a regular cron … Read more