Using WP-CLI to Backup and Restore WordPress Widgets

If you have ever lost your WordPress widgets after changing or updating your theme, this guide will help you solve that problem for the future! I will show you how to back up the WordPress widgets  (header, footer, sidebar, inactive and active) with WP-CLI so you can easily restore your widgets at any time. This … Learn more…

Using WP-CLI to Batch Autodelete Inactive WordPress Plugins

Keeping a clean and secure WordPress site is best practice. This means the database doesn’t have unnecessary bloat and all plugins are useful and up-to-date. A clean WordPress site is essential for making troubleshooting easy in case things ever go pear-shaped. Inactive plugins that are outdated and have security vulnerabilities are still dangerous for your … Learn more…

Using WP-CLI for Batch Updating Contact Form 7 Postmeta Options

I recently set up Mailgun for a Codeable client who was using Contact Form 7. Unfortunately after integrating Mailgun to improve the reliability of email delivery, the formatting of the emails was not quite right. I managed to isolate the issue to a setting called Use HTML Content Type in Contact Form 7 which had … Learn more…

Funny Google PageSpeed Insights Errors from AdSense + Analytics

People often use Google PageSpeed Insights tool to identify potential performance improvements by correcting the warnings. While I generally advise clients to focus on first byte and page load time rather than scores since they matter more for SEO, my client on Codeable required good scores on Google PageSpeed Insights in order to get into … Learn more…