[wp-trac] [WordPress Trac] #35990: Registering a custom post type should create a Recent CPT posts widget type
WordPress Trac
noreply at wordpress.org
Thu Jul 28 00:40:43 UTC 2016
#35990: Registering a custom post type should create a Recent CPT posts widget type
-------------------------------------+------------------------------
Reporter: ericlewis | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion needs-patch | Focuses:
-------------------------------------+------------------------------
Comment (by greenshady):
I'm not sure I see the need for a bunch of different widgets when a single
widget is reusable.
Why not simply put in a drop-down `<select>` of available post types in
the main widget class? Then, add a either a filter hook for post types to
opt-in or an argument for `register_post_type()`?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35990#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list