[wp-xmlrpc] Retrieving a list of all comments needing approval

Joseph Scott joseph at josephscott.org
Tue Jul 27 19:55:34 UTC 2010


You can do this with the wp.getComments method.  The fourth parameter
is used to filter which comments you want to get back (it is a
struct).  For instance if you provide a 'post_id' it will only give
you comments back for that specific post.  Providing a 'status' value
will return comments with that particular status.

It will return an array, with each entry the same data provided by
wp.getComment (it actually calls wp.getComment internally to gather up
all of the data).

On Tue, Jul 27, 2010 at 11:44 AM, Tim Golen <tim at golen.net> wrote:
> I was wondering if it was possible with the XMLRPC API to get a list of all
> the comments needing approval. The getCommentCount method gives you the
> number of comments, and the getComments method only gives you comments for a
> specific post. Is this possible?



-- 
Joseph Scott
joseph at josephscott.org
http://josephscott.org/


More information about the wp-xmlrpc mailing list