[wp-trac] [WordPress Trac] #46238: REST API: Allow conditional field registration
WordPress Trac
noreply at wordpress.org
Sun Oct 25 12:49:28 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:
------------------------------------------+------------------------------
Comment (by TimothyBlynJacobs):
@dominic_ks Yep, by adding it to the `$args` array.
I’m not sure there is a JSON Schema keyword that would make sense to
indicate this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46238#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list