Tom McFarlin

Software Engineering in WordPress, PHP, and Backend Development

Page 58 of 427

WordPress Widgets: Refactoring, Part 10

As far as the WordPress Widget Boilerplate refactoring goes, we’re at a good place. A lot of work has been done such that introducing new classes, features, and functionality should be much easier.

And not only that: It should be easier to follow.

Thanks the work in the last post, we have a lot of work to build off of – namely, an basic administrative interface.

WordPress Widget: UI Improved

Finally, the last post said:

Over the next few articles, this is going to continue to evolve but, as you can see, we’re making sure that we have a single base class of functionality for talking with WordPress and a class specifically for rendering the administrative form.

And that’s where we’re going to pick up in this article. Specifically, we’re going to look at sanitizing and serializing the data as well as retrieving the data saved in the widget.

Continue reading

Episode 2 – It’s a Foundation

Though I still consider this whole podcasting thing an experiment, and likely will continue to do so for a while, I’m excited to have the notes ready for the second episode.

Episode 2 - It's a Foundation

Depending on where you subscribe, you may already have listened to it or have it queued up. But I’ve got the show notes for the episode in this post.

And for those who are still curious the answers are:

  • Yes, it will be your new favorite podcast
  • Yes, this episode is longer than the first,
  • Yes, I still throw a mention to Matt,
  • And yes, I have a more structured format.

I don’t know how much more I could’ve put into what’s just the second episode, but you can be the judge.

Continue reading

Lessons on Launching (Three of Them, for Now)

One of the biggest things I’ve learned since trying out this whole podcasting thing (the second episode should be out next week, for those waiting with bated breath 🙃) is that achieving whatever arbitrary level of perfection before releasing something is hard.

Practical WordPress Development Podcast

You’d like I’d know this after so long in working in this field, right?

But there are several lessons on launching that I am trying to keep in mind especially as I’m working to get a few other projects off the ground all the while working in my day job.

Continue reading

WordPress Widgets: Refactoring, Part 9

Though the last post in this refactoring series wasn’t incredibly long, I do think it was a bit dense. That is, it required a fair amount of work to get the code in a place that we can more easily work with it.

But that’s just it: All the work we did should make it easier to move forward with the rest of the code we need to write.

And to make sure that we’re taking advantage of the work and the foundation we’ve laid thus far, we’re going to round out the series with a set of shorter, more focused articles that should take less time to read, implement, and understand what we’re doing with the code.

Continue reading

WordPress Programming: Separating Concerns

When it comes to creating classes for WordPress plugins, I’ve been asked about why I bother separating functionality into subscribers and into other classes.

I think this is a good question because it helps to understand two things:

  1. the role of a subscriber as it relates to the WordPress architecture,
  2. the role of the other classes as it relates to what it is you’re building (and how this can help with other things like unit testing and so on).

So I thought why not respond in the form of a short post? It’ll document the why behind the what [and it will give me a place to update if things change in the future].

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑