WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#15555 closed feature request (maybelater)

get_comments() lack support and custom post types

Reported by: hakre Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords: reporter-feedback
Focuses: Cc:

Description

Custom Post Types have comments support, but comment (e.g. via get_comments()) does not have support for custom post types.

Change History (3)

comment:1 scribu3 years ago

  • Keywords reporter-feedback added

What exactly do you mean by support? I was able to use get_comments() with CPTs just fine.

comment:2 hakre3 years ago

I mean something like get_comments( post_type='cpt' )

comment:3 nacin3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed

We don't touch the posts table in get_comments(). No need or desire for this -- can be done in a plugin.

Note: See TracTickets for help on using tickets.