[wp-hackers] store all revisions of user metadata in wordpress - possible?
nl at thoughtrefinery.com
Fri Aug 9 21:40:15 UTC 2013
Try storing all meta data for that user in a serialized array -- add entries indexed by meta key & timestamp whenever something changes, then query the history array to display change history for all or one item.
Make sure you avoid recursion and don't track the history of the history meta data (or store it in an option with the user_id in the key name).
On Aug 9, 2013, at 4:19 PM, Gregory Lancaster wrote:
> i spend the last seven hours trying to find a to store all revisions of
> *user* metadata. the idea is to allow a user to submit an update via form,
> and maintain a historical record of all previous updates on a specific
> i have tried auto incrementing the meta_key and meta_id without success, as
> well as several other strange variations in functions.php. is it possible
> to keep a historical record in this way, and display it visually along with
> the date each was submitted?
More information about the wp-hackers