wp-api-menus
wp-api-menus copied to clipboard
Add post thumbnail support for v2.
Allowing users to get access to featured images in posts is a simple two line change. This will simply return an empty string for those posts/themes which do not have/support a featured image.
I don't understand the reason behind this. The plugin just adds endpoints for menus. Can you explain?
@mckernanin The use case for this would be someone building a modern, tiled menu layout. An example of doing this with posts or categories would be https://wordpress.org/plugins/wp-tiles/.
Exposing the featured image from the menu endpoint would allow a theme designer to get the same effect using a menu, which has the benefits of your tiles not having to change with every new post.