[wp-trac] [WordPress Trac] #35613: Add granularity to REST API embeds
WordPress Trac
noreply at wordpress.org
Tue Jan 26 00:13:06 UTC 2016
#35613: Add granularity to REST API embeds
-------------------------+-----------------------------
Reporter: jnylen0 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: trunk
Severity: normal | Keywords:
Focuses: performance |
-------------------------+-----------------------------
Currently `?_embed` is all or nothing. It'd be good to have some
granularity here, for example specifying `?_embed=author` if we need just
the post author but don’t want the performance hit of embedding everything
else.
@joehoyle wrote a plugin for this (
https://gist.github.com/joehoyle/12e37c293adf2bb0ea1b ) and mentioned that
it will be easier to use after #34729 lands.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35613>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list