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