Software Engineering in WordPress, PHP, and Backend Development

Author: Tom (Page 120 of 428)

How To Get a WordPress Taxonomy By Term ID

Occasionally, when working on a project there are times in which it’d be nice to have an API function to help achieve whatever it is that needs to be done. Case in point: the ability to retrieve a taxonomy by term ID.

Get a Taxonomy By Term ID

Granted, it’s not a hard thing to do, but having the ability to retrieve the information from pre-existing functionality is always nice.

But when that’s not possible, we write our own way to do it, right?

Continue reading

Avoiding Project Scams (Through a Documented, Personal Experience)

In all of the years that I’ve been writing content for this blog, I don’t think I’ve ever detailed – let alone briefly covered – identifying or avoiding project scams that small business owners and freelancers can deal with when it comes to the emails we get.

This isn’t to say larger businesses don’t – because they do – but they also tend to have greater resources to fight that kind of stuff when it happens. Plus, smaller businesses are likely more of the target of petty crimes.

Even still.

Over the last few days, I’ve been corresponding with someone who had looked to hire Pressware for some work. It seemed like a scam from the beginning, but I opted to take the bait and to see how far it would go.

Ultimately, the point was to help others in our business with identifying and avoiding project scams (not to waste time).

I have small scale business which i want to turn into large scale business now

Usually, these things will converge to a point where they need some type of help with money, credit card charges, or the infamous use of Western Union (which I’ll cover later).

So for the sake of having this documented for others, I’m sharing all of this – and similar posts I found around the same type of scam – in this post.

Continue reading

Namespaces and Autoloading in WordPress

In my talk for this year’s WordCamp Atlanta, I’m going to be talking about namespaces and autoloading in WordPress.

Namespaces and Autoloading in WordPress

When I don’t yet have the images I want for my presentation, I use stock photos.

While working on my presentation:

  • I’ve been working on a project for someone in which I’m writing an autoloader from scratch,
  • I’m talking with other developers about their preferences with writing autoloaders,
  • I’m looking at open-source projects to see how others are writing autoloaders.

All of this is primarily done to see how, if it isn’t obvious, others implement namespaces and autoloading in their projects. What’s interesting is that there seem to be three main ways in which people go about doing it.

Continue reading

Manipulating WP Admin Bar Styles with Events

I’ve mixed feelings about the WordPress admin bar, but that has to do with how third-party solutions add their options to it (plus, it can be disabled if you’re not a big fan of it).

Recently, I published a small plugin – meant primarily for developers – that allows users to toggle admin notices whenever they are working with WordPress (ideally in their local environment, though it can be installed anywhere WordPress is installed).

WP Admin Bar Styles: Toggling with Events

The plugin is simple:

  • It introduces an item into the WP admin bar,
  • When you click on an item, it will toggle any notices or messages that are displayed,
  • When you click on it again, it will toggle their visibility.

But there’s a small nuance that I think is worth covering and that has to do with manipulating the WP admin bar styles using client-side code.

All of this is covered in the initial post, but one aspect of the code that I think is worth sharing for those working with the admin bar and those working with JavaScript.

Continue reading

How Do I Know When to Hire Someone?

Last week, I talked a little bit of how I schedule my time on a per week basis with a team of other people and the whole idea of “less, but better” from Essentialism.

When To Hire Someone: Scheduling Time Plays a Role

Though this isn’t a regurgitation of that post (because that’d be dumb 😇), it is a meant to show one way in which I go about doing that when there are some projects, project management, presentations, and other responsibilities all happening at the same time as I’m writing this post.

So what are we do to when our plate is full of things to do, and we’re not sure how to manage the time and responsibility? Perhaps that’s how we know when to hire someone.

Or maybe not.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑