[wp-hackers] Post meta revisions

John Blackbourn johnbillion+wp at gmail.com
Mon Nov 29 18:11:48 UTC 2010


Bit of an open ended question here. Has anybody looked into, or
implemented, any form of revisions for post meta attached to a post?

A plugin of mine stores meta data with each post and I'd like this
meta data to be stored along with each post revision, so if a previous
revision is restored then the corresponding post meta data at that
revision is also restored.

Not sure about the best way to achieve this. Data in the post_meta
table is stored against post IDs, not post revision IDs, so this won't
work out of the box.

Any suggestions or thoughts appreciated.

John


More information about the wp-hackers mailing list