We’ve just released Widget Base Class to facilitate WordPress widget creation!
Widget Base Class is a PHP class which facilitates widget creation, by faster creation, sanitization, validation and updates of Widget fields. Such an approach lets one set up widgets much faster, without code repetitions and care for messy data validation.
Thanks to that we can get rid of the update method completely and stop worrying about the form validation itself.
The widget does all of the data validation on its own. However we have to define the fields we want to use, so that our base class would have an idea on what kind of fields we’d like to use.
The class itself can be found on github.
Latest posts by RafaĆ Gicgier (see all)
- WP Doin Recognized among Top Web Developers in Poland - 29 October 2019
- WordPress application development ACF & Gravity Forms - 3 August 2019
- OptiPic.io – How and why to optimize the image on the site? - 8 April 2019