Adventures with WordPress & Business


Sharing Weekly Tues 7:30am EST
Subscribe

Exposing WSL to Windows for Dev Backups


I recently switched my primary computer from a Macbook Pro to a Surface Laptop. My WordPress development environment is now primarily contained within WSL which is the Linux portion of Windows. WSL’s filesystem isn’t exposed to Windows which means my development environment is not automatically picked up by Backblaze, my personal backup solution. Here is

Read More

OS Platform Whichever


This week I did the unthinkable. After 10 years using iMacs and Macbook Pros for WordPress development, I purchased Microsoft’s newest Surface Laptop 3. Part of the move was to downsize from a 15″ laptop to a smaller 13″. However that’s not really what this purchase was about. It’s a big deal to switch OS

Read More

Fetching from SFTP with Phpseclib


I recently had a customer who needed to fetch and import files from a remote SFTP server on a scheduled basis. The import process was handled nicely by WP All Import, so no need to do any custom code there. The only part missing the was actual SFTP fetching. Here is how I accomplish using

Read More

Full Page Website Screenshots


I previously wrote about taking website screenshots with gowitness. That works great for basic website screenshots. However my most recent project required full page screenshots which, unfortunately, gowitness does not yet supported. It’s also unlikely to be added anytime soon. Under the hood, gowitness simply uses headless Chrome which itself doesn’t support full page screenshots.

Read More

Migrating a Large WordPress Site


Migrating a WordPress site is generally a straightforward process. Make a backup of the current site, upload files, and import database onto the new web host. Moving a large website requires extra handling. Have you ever attempted to move a site with 100GB of storage? Tell me, how did that go? Of course migrations do

Read More

Composer Autoloading within WordPress Plugin


A good way to begin using object oriented PHP classes is by writing everything in a single .php file. That’s completely fine for small WordPress projects. For large projects a single file quickly becomes a disorganized mess. I know from experience building CaptainCore. 🧐 Take a peak at this one gigantic PHP file before I

Read More

Removing Legacy ms-files.php from Multisite


I created the following script to automate removing ms-files.php from a legacy WordPress multisite hosted with Kinsta. It was a large network with hundreds of subsites. Doing this manually would have been a huge undertaking. Not familiar with ms-files.php? I don’t blame you. It was a legacy multisite format for handling uploads prior to WordPress

Read More

Open Revenue with Calculate ARR


I meant what I said in “Open Source All Of The Things 📖”. Today I’m excited, maybe a little scared, to announce I’m making public Anchor Hosting’s internal revenue numbers. This is made possible with a new tool I created called Calculate ARR. Take a look: https://anchor.host/calculate-arr/. YNAB meets Baremetrics but for annual futurecasting. I’ve

Read More

Cloudflare 1.1.1.1 with Google Cloud VM Instance


Cloudflare’s 1.1.1.1 is pretty amazing. If you haven’t seen it, you should check it out. It’s a DNS lookup service which is fast, free and private. It works across all of your devices. I recently had DNS issues on a Google Cloud VM: it was causing sporadic failures with my site monitor. I thought maybe

Read More