[wp-hackers] Post meta revisions

Andrew Nacin wp at andrewnacin.com
Tue Nov 30 08:16:06 UTC 2010


On Tue, Nov 30, 2010 at 3:03 AM, John Blackbourn
<johnbillion+wp at gmail.com<johnbillion%2Bwp at gmail.com>
> wrote:

> On Mon, Nov 29, 2010 at 8:00 PM, Andrew Nacin <wp at andrewnacin.com> wrote:
> >
> > Metadata cannot be stored for revisions, but we only enforce that on the
> > *_post_meta() level. You can still use the *_metadata() functions to add
> > metadata to revisions.
>
> Thanks. Before I go digging, if there's post meta data for a
> particular revision ID would this meta data be automatically restored
> along with the post data if and when that revision is restored? If not
> I'll see what hooks we've got in place so my plugin can handle this
> itself.


No, but there's a wp_restore_post_revision hook in the function of the same
name.


More information about the wp-hackers mailing list