Repeated form field in WordPress widgets?

I am building a plugin for WordPress. My main goal is to create my own widget and try to avoid custom post types.

I tried this plugin: a duplicate entries widget, and it adds more entries when we click the "Add row" button. However, it somehow saves the input without my clicking the "Save" button on the default widget.

My question is: is a dynamic form possible in a WordPress widget? Is there a way to have a dynamic form, and then only save the data when the user clicks on the "Save" button by default?

+4
source share

Source: https://habr.com/ru/post/1669975/


All Articles