From c54ae6c28dac55e04572562bf0fb4aa6f6887b21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ribari=C4=87?= <43731400+ribaricplusplus@users.noreply.github.com> Date: Mon, 6 Sep 2021 17:08:08 +0200 Subject: [PATCH] REST links: Fix embeddable flag name --- using-the-rest-api/linking-and-embedding.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/using-the-rest-api/linking-and-embedding.md b/using-the-rest-api/linking-and-embedding.md index 4082d4b..c846f34 100644 --- a/using-the-rest-api/linking-and-embedding.md +++ b/using-the-rest-api/linking-and-embedding.md @@ -46,7 +46,7 @@ Optionally, some linked resources may be included in the response to reduce the Embedding is triggered by setting the [`_embed` query parameter](https://developer.wordpress.org/rest-api/global-parameters/#embed) on the request. This will then include embedded resources under the `_embedded` key adjacent to the `_links` key. The layout of this object mirrors the `_links` object, but includes the embedded resource in place of the link properties. -Only links with the `embedded` flag set to `true` can be embedded, and `_embed` will cause all embeddable links to be embedded. Only relations containing embedded responses are included in `_embedded`, however relations with mixed embeddable and unembeddable links will contain dummy responses for the unembeddable links to ensure numeric indexes match those in `_links`. +Only links with the `embeddable` flag set to `true` can be embedded, and `_embed` will cause all embeddable links to be embedded. Only relations containing embedded responses are included in `_embedded`, however relations with mixed embeddable and unembeddable links will contain dummy responses for the unembeddable links to ensure numeric indexes match those in `_links`. When embedding a collection response, for instance `/wp/v2/posts?author=1`, the embeded collection will have the default pagination limits applied.