[wp-hackers] Re: post revisiniong API

Joost de Valk joost at yoast.com
Tue Feb 24 13:03:06 GMT 2009


On Feb 24, 2009, at 1:59 PM, Mike Little wrote:

> 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.

Hm cool, that sounds like something I could make a cronjob of :)


More information about the wp-hackers mailing list