[wp-trac] [WordPress Trac] #13835: XLM-RPC API should return commentmeta values

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 24 19:51:16 UTC 2011

#13835: XLM-RPC API should return commentmeta values
 Reporter:  djr              |       Owner:  josephscott
     Type:  feature request  |      Status:  new
 Priority:  low              |   Milestone:  Future Release
Component:  XML-RPC          |     Version:  2.9
 Severity:  minor            |  Resolution:
 Keywords:  needs-patch      |
Changes (by ericmann):

 * keywords:  has-patch => needs-patch


 That patch won't work.

 `get_comment_meta()` takes in more than just the comment id.  You also
 need to specify the key you're retrieving.  Here's the full function from
 the source:

 function get_comment_meta($comment_id, $key, $single = false) {
     return get_metadata('comment', $comment_id, $key, $single);

 `$single` is optional (and not needed in this case), but `$key` is not.
 At the very minimum, you'd have to loop through and get all the keys so
 you could retrieve all the comment meta.

Ticket URL: <http://core.trac.wordpress.org/ticket/13835#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list