[wp-hackers] Revisions API

Dan Milward dan at instinct.co.nz
Mon May 23 23:50:03 UTC 2011


A graphic stored in one, and another that includes it. If the graphic is updated, we don't want the other cpt to use the updated revision

Best,
Dan

On 24/05/11 11:37 AM, Mike Schinkel wrote:
> Hi Dan,
>
> Can you give example of how two different CPTs or the specific data they would contain would differ?
>
> -Mike
>
> On May 23, 2011, at 7:31 PM, Dan Milward wrote:
>
>> Hey guys,
>>
>> Are there APIs/hooks for Plugins to refer to a particular (older) revision of a CPT and figure out what is the current revision of that CPT without have to do any SQL?
>>
>> Use case: /In our game engine a user can create a character sprite for a game that other people can use in their game. Once the user is happy they can publish their character sprite so that other people can use that in their games. (sprites/characters are custom post types).
>>
>> But if the user decides at a later date to change their sprite we don't want it to suddenly change for all the existing users of that sprite. We want them to continue to use the old revision and give them the option to upgrade to the latest CPT only if they want to./
>>
>> Any thoughts on this one would be appreciated.
>>
>> Best,
>> Dan
>>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
> _______________________________________________
> 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