[wp-trac] [WordPress Trac] #47866: Document that register_meta's show_in_rest for Custom Post Types requires custom-fields support

WordPress Trac noreply at wordpress.org
Tue Aug 13 13:32:17 UTC 2019


#47866: Document that register_meta's show_in_rest for Custom Post Types requires
custom-fields support
--------------------------+-------------------------
 Reporter:  kadamwhite    |       Owner:  kadamwhite
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.3
Component:  REST API      |     Version:  4.9.8
 Severity:  normal        |  Resolution:  fixed
 Keywords:  commit        |     Focuses:  docs
--------------------------+-------------------------

Comment (by leogermani):

 Great, I had to find out it myself couple of days ago and it wasn't
 straight forward.

 As a suggestion, maybe it could indicate more directly what needs to be
 present. Something like: "... declare support to custom post types by
 having 'custom-fields' in its 'supports' array. (@see register_post_type)"

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


More information about the wp-trac mailing list