[wp-hackers] wordpress trash and xmlrpc

Eric Mann eric at eam.me
Wed Dec 14 16:38:13 UTC 2011

Just FYI, there's a separate XMLRPC mailing list.

But since you're here already ... You can't place a post in the trash using
XMLRPC.  When a post is placed in the trash, it's given a post status of
"trash."  The XMLRPC post editing functions only support setting a post
status of the following:

   - 'draft'
   - 'pending'
   - 'private'
   - 'publish'

But this means you can set a post status as something other than "trash" if
you already know the post ID.  Just use the 'metaWeblog.editPost' method.

There is no function (at the moment) to empty the trash ...

On Wed, Dec 14, 2011 at 8:01 AM, fris <fris at fris.net> wrote:

> Using wordpress xmlrpc, is it possible to restore a post from the trash?
> Also is it possible to empty the trash via xmlrpc?
> _______________________________________________
> 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