Closed BE-Webdesign closed 5 years ago
Thanks @BE-Webdesign! Take a look at the discussion in #17. There is some ongoing uncertainty around precisely what the endpoint should look like and how it should be structured.
With apologies to @BE-Webdesign for the lack of maintenance on the widgets piece of this repository, I'm going to close this. Per #35 we have separated widgets code out into a new repository wp-api/widgets-endpoints
; if you are still interested in pursuing this change, I'd encourage you to re-open this there. I do caveat that suggestion with the warning that based on recent developments in Gutenberg, the widgets piece of this work may never land in core, so it may not be the most productive project to work on. Thank you for your contribution nevertheless!
Made get_item work with the way things are already structured. Revised the output of a widget resource to match more like what Weston Ruter suggested. Also some WordPress coding standards were applied.