Software Engineering in WordPress, PHP, and Backend Development

Author: Tom (Page 58 of 427)

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

WordPress Widgets: Refactoring, Part 8

When it comes to refactoring the WordPress Widget Boilerplate, we’ve done a lot of work to bring the code base up to more object-oriented standard. Further, we’ve introduced a variety of other tools that allow us to bring our code up to more modern standards

Now that we’ve spent time doing that, it’s time to jump back into the code and begin refactoring it in such a way that allows for the use of abstract classes and subscribers (that work as part of the event-driven design pattern).

At the end of the previous post, I wrote:

In the upcoming posts, we’re going to look at how we can implement subscribers for the public-facing side of the site (that is, where the widget content is displayed). And we’ll do the same for the administration area of the site.

So in this post, we’re going to do exactly that. Specifically, we’re going to start with working on a subscriber for the widget and then getting the base widget to display on the administrative side of the site first.

Continue reading

WP Square One – About Pressware and Me

Last summer, I had the opportunity to join Micah Wood and Aaron Reimann’s podcast, WP Square One.

WP Square One Podcast

It’s been a little while before I’ve had the opportunity to share the content of the interview as we waited for publication and transcription, but I’m happy to be able to do so finally.

This particular podcast was one in which we had a lot of fun but also talked about some more serious topics as it relates to business and WordPress.

Continue reading

Episode 1 – Turn up the Signal

finally published the first episode of the podcast. I’ve opted to title it a Practical WordPress Development Podcast.

Practical WordPress Development Podcast

The premise is simple:

It’s a podcast in which I answer listener questions and talk about the various aspects of being a self-employed developer working with WordPress.

Depending on when you read this, the show may or may not be available on your favorite service (but it’s coming!). In the meantime, you can check it out on Anchor.

All of the notes and the content for the show are covered later in the article.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑