[wp-trac] [WordPress Trac] #39959: Clarify parameters for callbacks for `register_rest_field()`

WordPress Trac noreply at wordpress.org
Mon Apr 3 22:14:25 UTC 2017


#39959: Clarify parameters for callbacks for `register_rest_field()`
--------------------------+-----------------------------
 Reporter:  flixos90      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  REST API      |     Version:  4.7
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------------

Comment (by kadamwhite):

 My sense is that they should be allowed to accept objects, for consistency
 with what we're doing now; but other parts of WP generally pass IDs.
 @rmccue Can you speak to why this class method is not being leveraged by
 the native endpoints?

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


More information about the wp-trac mailing list