[wp-hackers] Best way to delete post revisions
George Mamadashvili
georgemamadashvili at gmail.com
Mon Jan 23 14:56:32 UTC 2012
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
>
More information about the wp-hackers
mailing list