[wp-hackers] Re: post revisiniong API

Mike Little mike at zed1.com
Tue Feb 24 12:59:01 GMT 2009

2009/2/24 Joost de Valk <joost at yoast.com>:
>>> Has anybody ever tried to create a post revision from within a plugin?  I
>>> like the idea of the SEO Smart Links plugin, but don't want it to do  the
>>> filtering on each page load, I'd way rather have it go through  each post
>>> once, create an "original" revision and a new revision with  its own
>>> output...

I'm pretty sure that if you just call wp_update_post(), a new revision
will be created. I wrote a custom importer a while ago that supported
multiple runs with updated content, I ran it a few times and I recall
it was creating revisions.

Mike Little

More information about the wp-hackers mailing list