[wp-trac] [WordPress Trac] #50438: item_ labels do not work once registered in a post type

WordPress Trac noreply at wordpress.org
Sat Jun 20 13:05:17 UTC 2020


#50438: item_ labels do not work once registered in a post type
-------------------------------+------------------------------
 Reporter:  ninetyninew        |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:  docs
-------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * focuses:   => docs
 * component:  General => Posts, Post Types


Comment:

 Hi there, welcome back to WordPress Trac! Thanks for the report.

 It should probably be better documented, but `item_published` and other
 `item_*` labels are only used for post types that support block editor:

 * `'supports'     => array( ..., 'editor' )`
 * `'show_in_rest' => true`

 If the post type does not support editor, or only supports classic editor,
 these labels are indeed not used.

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


More information about the wp-trac mailing list