[wp-trac] [WordPress Trac] #46238: REST API: Allow conditional field registration

WordPress Trac noreply at wordpress.org
Sun Oct 25 03:23:38 UTC 2020


#46238: REST API: Allow conditional field registration
------------------------------------------+------------------------------
 Reporter:  dmsnell                       |       Owner:  (none)
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  REST API                      |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+------------------------------
Changes (by TimothyBlynJacobs):

 * keywords:   => needs-patch needs-unit-tests


Comment:

 I can see how this is useful, but I would rather see this implemented as
 an optional `skip_callback` or `include_callback`, WordPress doesn't
 really use a sentinel pattern at all and I think a callback approach is
 much more WordPressy.

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


More information about the wp-trac mailing list