[wp-hackers] Best way to delete post revisions
William Satterwhite
whsatterwhite at gmail.com
Mon Jan 23 14:45:53 UTC 2012
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
More information about the wp-hackers
mailing list