[wp-trac] [WordPress Trac] #42737: Add method wp.api.getModelByType for retrieving api models
WordPress Trac
noreply at wordpress.org
Sun Feb 18 17:24:48 UTC 2018
#42737: Add method wp.api.getModelByType for retrieving api models
-----------------------------+------------------------------
Reporter: mkaz | Owner: adamsilverstein
Type: feature request | Status: assigned
Priority: normal | Milestone: 5.0
Component: REST API | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: javascript
-----------------------------+------------------------------
Comment (by mkaz):
Patch attached.
The mapping associative arrays were created outside of the getModelByType
and getCollectionByType functions so that they can be extended or
overwritten if necessary.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42737#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list