Executing a timed update on all listings at specific time of the day

Hi, does anyone have a code snippet which would basically do: “edit listing → save” to all existing listings? I would like this to happen f.e. everyday/night at 00:00. I heard it could be done with strtotime function in the functions.php but I am not quite sure how to get the code entirely correct and running.

Basically I just need to make an update for all listings without having to make any changes in them.

Thank you so much in advance.

Hi,

Unfortunately, there is no simple snippet for this, it will require a custom implementation. If you are familiar with coding or have a developer, you can use this hook hivepress/v1/events/daily. But, please note that with WordPress Recurring actions, there is no guaranteed time when it will work, as the action will occur when the site is visited. Another option is to customize everything with a scheduled action.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.