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

Cooking rice packets in a Thermos

A few facts led to embarking on this experiment: My 12-year-old son and I are both lazy uninterested when it comes to preparing entrees for him to take to school. Mornings are not a great time to do something involved, both due to a night-owl tendency on his part and the short window to get…

Read More

Three creative ways to use up leftover marshmallow fondant

I made a couple of cakes for a school cakewalk last week, and ended up with leftover marshmallow fondant in four colors. Thinking there must be some reasonable way to use it up, I googled. The results were… uninspiring. Essentially, the advice was either to save it, practice with it, or use it as fondant.…

Read More

ALDI product comparisons

We like ALDI and most of the products we’ve bought there. If you’re not familiar, it’s a German-owned grocery chain and almost everything they sell is generic. This is a lot like Trader Joe’s, and in fact, they’re both owned by the same German family. I often wonder how similar the generic products are to…

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

Sponge Shortcake for Strawberry Shortcakes

We love strawberry shortcake in my house. We’re also not particularly snobby about it. Gourmet concoctions? We’ll take ’em! Those funny packaged sponge cakes from the grocery store? We’ll take those, too! However, if I’m going to go to the effort of making something from scratch, I’ll try to find the best recipe. We knew…

Read More