WordPress Widgets Refactoring, Part 10 And now, we start adding sanitization and functionality into WordPress Widget Boilerplate... we're at place. A lot of work has been done such that introducing new classes, features, and functionality should be much easier.. Thanks the in the last post, we have lot of work to build off of namely, basic administrative interface... Over the next few articles, this is going to continue to evolve and, as you can see, we're making sure that we have single base class of functionality for talking with WordPress and class specifically for rendering the administrative form... Specifically, we're going to look at sanitizing and serializing the data and retrieving the data saved in the widget... there's some minor work that we're going to need to do to our administrative view. Recall from previous posts in the series that we've built form that accepts title, some content, and checkbox.. ⚠️ Hey, Wait... Notice that we're focused on making sure that we're writing classes with cohesion, responsibility, and that are not tightly coupled.. We're going to iterate on this bit more in the next post. So study the code above, implement it and we'll go from there in the next post..
Read more