[wp-trac] [WordPress Trac] #41739: Support a "source" attribute in post types, taxonomies, and post statuses

WordPress Trac noreply at wordpress.org
Mon Aug 28 02:19:38 UTC 2017


#41739: Support a "source" attribute in post types, taxonomies, and post statuses
-------------------------------+------------------------------
 Reporter:  johnjamesjacoby    |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  3.0
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * component:  General => Posts, Post Types


Comment:

 `WP_Post_Type::set_props()` already sets any custom properties you pass to
 `register_post_type()`, so this appears to be possible without any special
 support from WordPress core.

 Just tested by adding `'source' => 'bbpress'` to the post types in
 `bbPress::register_post_types()` and checking `get_post_types( array(
 'source' => 'bbpress' ) )`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41739#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list