Share

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.

Have you checked our other free software yet?
There’s a Base Theme and a Widget Wrapper Class to use!
The following two tabs change content below.
WordPress Blogger, Certified Codeable Expert Developer, Senior WordPress developer. Having worked with WordPress for over 8 years creating plugins, themes and WordPress based applications. I am wordpress.org contributor, CodeCanyon creator and YouTuber.