Getting Started with Axios and WordPress

When working with modern Javascript like Vue.JS, a common thing is sending and receiving data via ajax. While this could be handled with jQuery, I’d recommend using Axios which is a modern standalone library for handling ajax requests. Axios can be enqueued just like any other Javascript library. The following PHP is an example…

Smarter Site Monitor in Bash

For the last number of months I’ve been using my own site monitor. It’s been great and terrible all at the same time. It’s great as it’s uncovered many issues that were missed by Jetpack Monitor. That’s due to my strict requirement for sites to end in a proper </html> tag and a higher…

Bulk Renaming Meta Fields

Most of the time when working with meta fields I’ll use Advanced Custom Fields. One place where I don’t use ACF is within CaptainCore CLI where data is stored directly into meta fields using WP-CLI. I recently wanted to rename a bunch of meta fields for better organization. WordPress doesn’t have a built-in way…

Image Optimization for Web Servers

When it comes to image optimization, my go to WordPress plugin is WP Smush Pro. That said there are times I want to do more than what a plugin can handle. I recently had a customer who had over 50GBs of images. That’s even after WP Smush Pro reduced image usage by over 5GBs.…

Moving 500+ sites to Kinsta

Over the past 6 months I’ve worked with Kinsta to move over 500+ sites from WP Engine. This will be my official review and recap of that massive switchover. I’ll just begin with a spoiler and say I couldn’t be happier with the whole process and consider this upgrade a huge success. 🎉 WP…

ACF Custom Fields Stored in Custom Table

Within CaptainCore, my WordPress management toolkit, I have a custom post type named captcore_website which stores site details via many ACF custom fields. The number of necessary custom fields seems to be never ending as I continue to expand functionality. Currently there are over 50 custom fields and my newest endeavor would require an…

Extracting Stats from a Fathom Instance

Back in October of 2018 Fathom, the open source web analytics project, added support to track multiple websites per instance. Since then I’ve been collecting site stats for all of my WordPress customers with intent to reduce my reliance on Jetpack Stats. Rather than wait for an official Fathom API I decided to see…

WordPress as an Experimental Rclone HTTP Remote

Whenever I migrate WordPress sites I prefer that to be handled by a command line script. Well that’s not always possible often due to limited access on the source WordPress site. Many times I’m only giving WordPress admin access and work with that. My go-to has been to use a backup plugin. But still,…

Bulk Processing WP Engine Usage Stats

WP Engine provides a downloadable CSV usage stats per site. This is great for seeing individual site activity however it’s not very useful for comparing sites. With a dedicated WP Engine server it would be extremely helpful to see all sites organized by their usage stats. This would help identify top sites which might…

Removing Timthumb from a Custom Theme

Timthumb was a very popular php script for dynamically generating thumbnail images. That said it’s outdated and has performance issues when used with a modern web host like Kinsta. The following is a walkthrough showing the steps I took to remove Timthumb from a custom theme for one of my customers. Search for Timthumb…