[wp-trac] [WordPress Trac] #16608: Adding an xml-rpc call to get the count of spam comments
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 21 19:22:09 UTC 2011
#16608: Adding an xml-rpc call to get the count of spam comments
-------------------------+------------------------------
Reporter: plopmaster | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version: 3.0.5
Severity: normal | Resolution: invalid
Keywords: close |
-------------------------+------------------------------
Changes (by josephscott):
* status: new => closed
* resolution: => invalid
Comment:
There is already an XML-RPC method to get this data: wp.getCommentCount(
blog_id, username, password, <post_id> )
The post_id parameter is optional, if it is left off it will give you the
comment count totals for the entire site. If you provide it the counts
will be just for that post. The counts are broken down by comment status,
results look like this:
{{{
[approved] => 31
[awaiting_moderation] => 2
[spam] => 2
[total_comments] => 35
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16608#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list