[wp-hackers] Best way to delete post revisions

Mika A. Epstein ipstenu at ipstenu.org
Mon Jan 23 21:40:39 UTC 2012


Read http://solidlystated.com/design/sql-to-delete-wordpress-revisions/ 
for a good way.

On 23.01.2012 08:56, George Mamadashvili wrote:
> Simon I know that plugin and it uses SQL queries. I'm wrapping my own 
> one,
> more simple and secure.
>
> William, yes I think SQL query will fit more in this situation.
>
> On Mon, Jan 23, 2012 at 6:45 PM, William Satterwhite <
> whsatterwhite at gmail.com> wrote:
>
>> Run SQL queries to do this. You can get them all in one fell swoop.
>>
>> On Mon, Jan 23, 2012 at 9:44 AM, George Mamadashvili <
>> georgemamadashvili at gmail.com> wrote:
>>
>> > Hello Azizur.
>> >
>> > Yes, I've read that and I know how to disable them.
>> >
>> > I mean how to delete post revisions via plugin, which is the best 
>> way -
>> run
>> > SQL query or loop with wp_delete_post function
>> >
>> > Thanks
>> >
>> > George
>> >
>> >
>> >
>> > On Mon, Jan 23, 2012 at 6:37 PM, Azizur Rahman <
>> > prodevstudio+wordpress at gmail.com> wrote:
>> >
>> > > Hi George,
>> > >
>> > > Read the user guide:
>> > > http://codex.wordpress.org/Editing_wp-config.php#Post_Revisions
>> > >
>> > >
>> > > Kind Regards,
>> > > Azizur Rahman
>> > >
>> > >
>> > >
>> > > On Mon, Jan 23, 2012 at 12:27 PM, George Mamadashvili
>> > > <georgemamadashvili at gmail.com> wrote:
>> > > > What is a best way to delete post revisions and its metadata?
>> > > >
>> > > > Run SQL query with joins, or get ID of revisions and then run 
>> foreach
>> > > loop
>> > > > with wp_delete_post()?
>> > > >
>> > > > Thanks
>> > > > _______________________________________________
>> > > > 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
>> > >
>> > _______________________________________________
>> > wp-hackers mailing list
>> > wp-hackers at lists.automattic.com
>> > http://lists.automattic.com/mailman/listinfo/wp-hackers
>> >
>>
>>
>>
>> --
>> William H. Satterwhite
>> (252) 762-5177
>> _______________________________________________
>> 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

-- 
Mika A Epstein (aka Ipstenu)
http://ipstenu.org


More information about the wp-hackers mailing list