Determine when a custom field was last updated?

I would add another custom field that stores the update time.

Then create an add_action function for update_post_meta to also save the timestamp at the same time you write to CUSTOMFIELD.

The action triggered when adding a custom field is add_post_meta and when updating a custom field update_post_meta

Leave a Comment