When wp_schedule_event action has two possible directions, how to avoid an infinite loop?

You should create a user data version index variable, every time it changes increment. This should help keeping track of which the most current version of the data set is. You can use the value of that index to determine, if an update should happen or not.

(Answer from comment)

Leave a Comment