[wp-trac] [WordPress Trac] #21571: Add support multiple comment types in get_comments
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 14 00:49:43 UTC 2012
#21571: Add support multiple comment types in get_comments
-------------------------+-----------------------------
Reporter: borkweb | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version:
Severity: normal | Keywords:
-------------------------+-----------------------------
Custom comment types are a nice way to categorize comments, however, if
you wish to retrieve multiple comment types you cannot use
''get_comments''. This enhancement request (patch attached) adds support
for multiple comment types a la:
{{{
$comments = get_comments( array(
'post_id' => $post->ID,
'type' => array(
'a-sweet-comment-type',
'some-other-comment-type',
),
));
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21571>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list