From Coding to Cooking: Practical Uses for ChatGPT

Six months ago, I started playing with ChatGPT, an AI developed by OpenAI. At first, it felt like being handed a high-tech gadget with a one-page manual—intriguing but a bit overwhelming. What was I supposed to do with it? Chat? Yet, as weeks morphed into months, I found that I was increasingly in conversation with…

Read More

Obsidian, the note-taker of my dreams

The backstory (Hate navel-gazing backstories? Just want the practical details? Feel free to skip to how I’m using Obsidian!) I’m one of those people who are always trying new systems, convinced that “all I need” to finally be on top of things is in the next system. Occasionally it’s even true, but usually takes a…

Read More

WooCommerce Subscriptions unexpected value: INF

Short and sweet, because I got no Google results for my search: When calling WCS_Switch_Cart_Item::get_old_price_per_day(), I got back INF as a result. After tracking it down, it was because I had filtered wcs_switch_proration_days_in_old_cycle but had a bug that was resulting in no value being returned.

Read More

Adding or updating a Gravity Forms license on WordPress Multisite

Recently when I went to update plugins on a WordPress Multisite install, I noticed Gravity Forms wouldn’t update and gave the following error message: This didn’t come as a surprise because I knew the license was expired. I had a new license number to activate, but it wasn’t immediately obvious where I could do that.…

Read More

React Query – Essentials course errata

I’m learning React Query, specifically by going through Tanner Linsley’s React Query – Essentials course on Teachable. I had heard that there are some version-related inconsistencies in the course, and sure enough, I’ve run into them. The associated repo is also out-of-date, so no help there. I’m documenting them here as I encounter them in…

Read More

Building a // phpcs:ignore string for WordPress Coding Standards

I’ve been using PHP_CodeSniffer and the WordPress Coding Standards sniffs in Visual Studio Code to help me avoid issues and follow the standards. Occasionally, though, I’ll get an error from a sniff that is either over-vigorous or I can’t comply with for reasons outside of my control. A common case is when I’m working with…

Read More

How to get WordPress to load jQuery in the header

I had a pretty specific use-case where I needed jQuery to load earlier than usual. After googling “how to force wordpress to load jquery in the header”, I got all kinds of advice about how to replace the WordPress version of jQuery by deregistering the default and registering a different version, etc. I didn’t want…

Read More