[wp-hackers] store all revisions of user metadata in wordpress - possible?

Jamie Currie jamie at wunderdojo.com
Fri Aug 9 22:00:32 UTC 2013


Interesting approach, wouldn't have thought to do it that way. Wouldn't 
it make it challenging to do any kind of searching / filtering on the 
metadata though?

Jamie Currie
Founder / CEO
wunderdojo
wunderdojo.com <http://www.wunderdojo.com> | twitter.com/wunderdojo 
<http://twitter.com/#!/wunderdojo>
tel: 949-734-0758
23 Corporate Plaza Drive, Suite 100
Newport Beach, CA 92660
Master web & app developers




------ Original Message ------
From: "Nicholas Ciske" <nl at thoughtrefinery.com>
To: wp-hackers at lists.automattic.com
Sent: 8/9/2013 2:40:15 PM
Subject: Re: [wp-hackers] store all revisions of user metadata in 
wordpress - possible?
>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).
>
>_________________________
>Nick Ciske
>http://thoughtrefinery.com/
>@nciske
>
>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
>>  page.
>>
>>  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?
>
>_______________________________________________
>wp-hackers mailing list
>wp-hackers at lists.automattic.com
>http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list