Opened 5 years ago
Last modified 2 months ago
#49538 new enhancement
Can't get a subset of `_embedded` using `_fields`
Reported by: | iandunn | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | 5.3 |
Component: | REST API | Keywords: | needs-patch needs-unit-tests |
Focuses: | performance | Cc: |
Description
I'd expect to be able to limit which values get returned in embedded fields, the same way that I can with standard fields. e.g.,
https://wordpress.org/news/wp-json/wp/v2/posts/8384?_fields=slug,_embedded.author.name&_embed
That would make the response faster and smaller.
Attachments (1)
Change History (10)
#1
@
5 years ago
- Keywords needs-patch needs-unit-tests added
- Milestone changed from Awaiting Review to 5.5
- Version set to 5.3
This ticket was mentioned in Slack in #core-restapi by timothybjacobs. View the logs.
5 years ago
This ticket was mentioned in Slack in #core-restapi by timothybjacobs. View the logs.
4 years ago
This ticket was mentioned in Slack in #core by hellofromtonya. View the logs.
4 years ago
Note: See
TracTickets for help on using
tickets.
Milestoning for consideration to continue our focus on performance.