Software Engineering in WordPress, PHP, and Backend Development

Category: Articles (Page 133 of 258)

Personal opinions and how-to’s that I’ve written both here and as contributions to other blogs.

Deregistering WordPress Stylesheets

Deregistering WordPress stylesheets is one of those things that we don’t always have to consider.

If you’re starting a project from scratch, then it’s usually safe to say that you’re starting a project at ground zero and have control over most of the assets that are to be enqueued in the project.

On the other hand, if you’re coming into a project at a later date or you’re working on a plugin that has to work in conjunction with another plugin that might use a shared stylesheet then you may need to deregister an existing asset to make sure everything works well together.

Continue reading

Praise in Public, Reprimand in Private

“Praise in public, reprimand in private” is a phrase that I heard years ago (and I can’t remember who I actually heard say it first), but it was one of those things that stuck with me.

When you hear phrases like that, I think we often consider things like parenting, leadership, managing a team, or something similar. But do you ever think about it in terms of blogging, tweeting, or what we share online?

For anyone who works online the majority of the day and is engaged in some form of social media, I think we’re used to seeing people both praise and critique others be it via tweets, blog comments, and so on.

And sure, there’s something to be said for “calling people out” for whatever reason, but I think there’s something to be said for also handling some of that stuff privately.

Continue reading

Sharing GPL Code and Its Ethics

“Sharing GPL Code” sounds like such a loaded title because the topic is forever hot. But hang with me because the purpose of this post has nothing to do with actually arguing for or against the GPL or code around it.

I know the simple answer is that all GPL code, by very nature of its license, it’s available for sharing, but there’s another aspect that plays into this I want to discuss.

Sharing GPL Code

Sharing GPL Code can be more about collaborating on code, right?

 

And that’s this:

What is the ethics of sharing the code for a project that you’ve built for someone else even if it maintains the GPL?

For the most part, I think it’s fine. But when you’re running a business and you’re building solutions for clients, there’s a little more to it.

At least, that’s my experience.

Continue reading

The Right Hook To Initialize WordPress Plugins

When I first started working on WordPress plugin development, I used to obsess over the right hook to initialize WordPress plugins. That is, I thought there was one hook that would sit above all other hooks and prevent me from needing to go looking through the Codex or other source code to find the right one.

But that’s not the case.

To be clear, this isn’t to say that there aren’t some strategies and some hooks that work better than others in many, many cases, but there are times where whatever you’re used to using isn’t going to work. This depends on how you’re structuring your plugin, and I’ll talk more about that in a moment, but there’s isn’t one hook to rule them all when you want to initialize your WordPress plugins.

Initialize WordPress Plugins

By now, you likely know the whole deal about the one ring, right?

Instead, you’ve got to find the one that suits your needs best for the functionality you’re introducing.

Continue reading

Building Quality into WordPress Projects: A Practical Example

Building quality into WordPress projects is a topic that sounds a little subjective or maybe even a bit esoteric.

To be honest, I think it certainly helps to have a level of experience in general software development as well as with the way WordPress does things, but it’s something that anyone can learn.

I’d go as far as to say that many people who care about building quality into WordPress projects are people who are consistently learning new ways to go about doing so.

Anyway, in a recent article for Envato, I cover exactly this.

Continue reading

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑