TL;DR: Add this code to your plugin/theme and it will log all SQL queries (warning it can be a lot, and will impact performance) to a queries.log file in the current directory. And don’t forget to enable SAVEQUERIES in wp-config.php I’ve been working A LOT with the WordPress REST API for a plugin I’m writing […]
One of my most frequently used command line utilities is Grep, specifically grep -lir which searches for text inside files (great for finding where else I referenced that variable I just renamed). As I started using Node.js more and more (and consequently my node_modules folder grew bigger and bigger) I found myself getting more annoyed […]
This is going to be a quick one, I should have included it in my post on “Printing the Internet” but I forgot. I do more manual data manipulation then I care to, but one of the biggest helpers in these endeavors is Regular Expressions. (the biggest help, BY FAR, is VSCode’s multiple cursors). My […]
I’ve been a HUGE fan of Ahmad Awais for awhile now. Among the things he’s created that I use daily are the git commit messages from his Emjoi Log repo. With the announcement that Catalina is going to default to zsh instead of bash I decided to explore the new shell and came across Ali […]
In the past few years, I’ve given a few talks about using a multitenant WordPress install for local development. I just finished doing some major updates, most significantly switching to VVV’s built-in certificate for HTTPS, and pushed the updates to the Github repo for the project. Feel free to give it a try if you’re […]
Recently, I was working on a plugin to convert ACF fields to the post content for a custom post type we use. The custom post type is used by another plugin I wrote that has per-site fields for the custom post type, varying from 3 fields to 37 fields. Since I wanted to make this […]
I figure since I make my living from the web I should have my own place to put things that I can’t squeeze into a tweet or instagram photo, but don’t expect much here. If you want to see what’s on my mind or what I’m up to, I’d recommend following me over there.