Software Engineering in WordPress, PHP, and Backend Development

Category: Notes (Page 13 of 49)

Notes on programming-related problems that I’ve encountered while working on various projects.

Sharing Project Files on OS X

If you’re used to working on OS X or a Linux-based distribution and you need to share project files with a peer, it’s not always as easy as being able to drop a file in Dropbox or send a single file via email.

Case in point: Whenever I work on screencasts or demo videos for client files, I use Screenflow in order to capture video and audio. But because of the way I setup screencasting, I use a separate user account on my machine.

This means that I need to share project projects between the account used for screencasting and the account I use for everything else.

Continue reading

Remove an Enqueued Stylesheet in WordPress

When working on a pre-existing version of a site, you may need to check if a style is already loaded. This, in and of itself, is not that difficult, but if it’s using an older version of a dependency, then it can get a little more complicated.

For example, let’s say that you’re building a plugin for an existing site. The existing site uses something like Font Awesome, but it’s using an older version.

Font Awesome

The requirements call for some updated icons that aren’t available in the existing version. Furthermore, the version of Font Awesome maybe be the minified version or not so we need to check for that.

Continue reading

Modifying the WHERE Clause in WordPress

When retrieving data, there times where you may want to change the WHERE clause in WordPress. That is, depending on what you’re retrieving, you may want to filter what it’s searching.

Using WHERE in WordPress to filter results

A favorite, but It’s not that kind of filter.

And that’s exactly what a WHERE clause does. But just as we’ve looked at content in other posts, we can alter the WHERE clause via the WordPress API.

In previous posts, I’ve covered:

Here, I’ll show how to use the API to change the WHERE clause so you’re not having to do so through a custom query.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑