Today I learned
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 MoreSorting 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 (a custom post type). I want to display the Chapters in a list sorted by the state in alphabetical order;…
Read MoreSolving 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 you haven’t looked at in years is the most fun ever). I’d tried it a couple of months ago and…
Read MoreHow to change the “Quick Page/Post Redirect” plugin’s meta box priority
What I searched for “Quick Page/Post Redirect” metabox priority Why I searched for it I’m adding custom meta boxes to one of my Custom Post Types, but the “Quick Page/Post Redirect” plugin’s meta box has high priority and is jamming itself in where it isn’t wanted (it’s messing up my flow, man!). What I learned…
Read MoreDigging 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 MoreHow to make the phpMyAdmin sidebar table links default to “browse”
What I searched for phpmyadmin default to browse instead of structure Why I searched for it I swear this used to be the default behavior, but now (using phpMyAdmin 4.6.4 and MAMP 4.0.5—which turns out to be relevant) clicking a table name in the left sidebar opens up the “Structure” tab. 95% of the time I want…
Read MoreWhere 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 the error “The secret passphrase in configuration (blowfish_secret) is too short.” From previous experience, I knew that I could add…
Read More