Extending WP REST API to include Additional Sizes
-
Hi! Thanks for developing this plugin. I’m using WP as a headless CMS and relying on the the WP REST API to fetch content. Happy to see the additional video sizes are included in the Media response’s
description.rendered
data[1] (from the_content()) but it would be excellent if these were separated into their own object or array.I’ve started tinkering with extending the API myself but unsure what function from your plugin to use to retrieve the “Additional Formats” media (hopefully including their size and url at least).
Any help much appreciated!
[1] Default WP REST Media endpoint is
/wp-json/wp/v2/media/${id}
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Extending WP REST API to include Additional Sizes’ is closed to new replies.