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

Digging into “$(…).tipTip is not a function” error

What I searched for “Uncaught TypeError: $(…).tipTip is not a function” Beaver Builder Why I searched for it When I was trying to load Beaver Builder’s settings page in the WordPress backend, I was getting this error in Chrome’s Javascript Console, thrown by line 58 in /bb-plugin/js/fl-builder-admin-settings.js (the line in question: $( ‘.fl-settings-form .dashicons-editor-help’ ).tipTip();).…

Read More

Tracking down expdbs_migrations

I’m cleaning up a client’s WordPress database and found a very large row in the wp_options table with the option_name “expdbs_migrations_307560ade90b365a15bcb8d6d1aed8fa”. I suspected this was a remnant of a no-longer-installed plugin (they don’t have any plugins that start with “E” at the moment), but wanted to be sure before hacking it out. Googling “expdbs_migrations” found a number…

Read More