#35613 closed enhancement (duplicate)
Add granularity to REST API embeds
| Reported by: | jnylen0 | Owned by: | joehoyle |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | REST API | Version: | |
| Severity: | normal | Keywords: | needs-patch needs-unit-tests |
| Cc: | Focuses: | performance |
Description
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Duplicate of #39696.