Closed BE-Webdesign closed 5 years ago
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!
Added create_item method should be compliant with #17. It works for any core widget or 'noform' widget. After working some more on the inference of widget instances I think it will work surprisingly well for any widget. Going to be using SOW (Site Origin Widgets) as a base point since they are fairly complex widgets. Made slight change to delete_item as well.