WordPress
These are products we've actually bought, in all their randomness. Enjoy. ;)
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…
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…
Sorting posts by meta_value when they’re saved as an ACF serialized array
What I searched for “acf” sort by meta_value serialized Why I searched for it I’m using Advanced Custom Fields to let a site manager pick one or more US states to associate with each Chapter…
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…
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…
Solving phpcs: Referenced sniff “PSR12.Keywords.ShortFormTypeKeywords” does not exist
I’ve been trying to get the WordPress Coding Standards playing nicely with Visual Studio Code (I had it working on my Mac, but I’ve since moved to Elementary OS and everyone knows that configuring things…
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…
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…
Where to find the phpMyAdmin config file in VVV
What I searched for vvv phpmyadmin config file Why I searched for it I’ve just started using Varying Vagrant Vagrants to do some local WordPress development. When I visited the included phpMyAdmin install at http://vvv.test/database-admin/, I got…