WP-CLI Packages: Supercharge Your WordPress Development
WP-CLI packages take the increased efficiency of the command line even further by extending it with new or modified commands. In this article, we’ll show you how to install packages,… Read more
Managing WordPress Dev Environments With WP-CLI and Robo
Automating repetitive tasks is one of the best ways to save time in your development workflow. In my day to day work as a plugin developer, I often have to… Read more
Installing, Updating, and Managing WordPress Plugins With WP-CLI
WP-CLI allows you to do practically anything you can do in the WordPress admin, but on the command line. This saves a lot of time and provides a cleaner workflow.… Read more
Our Guide to WP-CLI Command Structure
The WordPress command line interface (WP-CLI) is an incredible tool for improving your development workflow. Understanding how commands are structured is key to using WP-CLI to its full potential. In… Read more
The Complete Guide to Installing WP-CLI
The WordPress command line interface (WP-CLI) is a powerful WordPress-developer focused tool. Here at Delicious Brains we use it to help us write tests, manage changes to our site databases,… Read more
WP-CLI Command – Import Subcommand
wp migratedb import <import-file> [–find=<strings>] [–replace=<strings>] [–regex-find=<strings>] [–regex-replace=<strings>] [–case-sensitive-find=<strings>] [–case-sensitive-replace=<strings>] [–backup=<prefix|selected|table_one,table_two,table_etc>] Import an SQL file into the database. Options <import-file> The path of the SQL file to import. [–find=<strings>] A… Read more
Writing Functional Tests for WP-CLI Packages
My last article was part of a short series on automating local WordPress site setup. In that series, we created a WP-CLI package that helps with installing and uninstalling WordPress… Read more
Automating Local WordPress Site Setup with Scripts Part 2: Creating a WP-CLI Package
This is article 2 of 3 in the series “Automating Local WordPress Site Setup with Scripts” In my previous article in this series, I discussed some simple ways to make… Read more
WP-CLI Command – Find & Replace Subcommand
wp migratedb find-replace [–find=<strings>] [–replace=<strings>] [–regex-find=<strings>] [–regex-replace=<strings>] [–case-sensitive-find=<strings>] [–case-sensitive-replace=<strings>] [–include-tables=<tables>] [–exclude-post-types=<post-types>] [–skip-replace-guids] [–exclude-spam] [–include-transients] [–subsite=<blog-id|subsite-url>] Run a find & replace on the database. Options [–find=<strings>] A comma separated list of… Read more
WP-CLI Command – Setting subcommand
The setting CLI subcommand provides an interface to get and update several WP Migrate DB Pro settings from the CLI. wp migratedb setting <action> <setting_name> <value> Options <action> Can either… Read more
WP-CLI Command
WP Migrate includes integration with WP-CLI, allowing you to run migrations from the command line. It adds the migrate command which can be run from the CLI as follows: $… Read more
WP-CLI Command – Export Subcommand
wp migratedb export <output-file> [–find=<strings>] [–replace=<strings>] [–regex-find=<strings>] [–regex-replace=<strings>] [–case-sensitive-find=<strings>] [–case-sensitive-replace=<strings>] [–include-tables=<tables>] [–exclude-post-types=<post-types>] [–skip-replace-guids] [–exclude-spam] [–gzip-file] [–include-transients] [–subsite=<blog-id|subsite-url>] [–prefix=<new-table-prefix>] Export your local DB to a file. Options <output-file> A filename to… Read more
WP-CLI Command – Profile Subcommand
wp migratedb profile <profile_name> or wp migratedb profile <profile_id> Allows you to run a migration with a saved migration profile. The migrate subcommand is an alias of profile. Options profile_name… Read more
WP-CLI Command – Push/Pull Subcommands
wp migratedb <push|pull> <url> <secret-key> [–find=<strings>] [–replace=<strings>] [–regex-find=<strings>] [–regex-replace=<strings>] [–case-sensitive-find=<strings>] [–case-sensitive-replace=<strings>] [–include-tables=<tables>] [–exclude-database] [–exclude-post-types=<post-types>] [–skip-replace-guids] [–exclude-spam] [–preserve-active-plugins] [–include-transients] [–backup=<prefix|selected|table_one,table_two,table_etc>] [–media=<all|since-date>] [–media-date=<yyyy-mm-dd>] [–media-subsites=<blog-id|subsite-url>] [–subsite=<blog-id|subsite-url>] [–subsite-source=<blog-id|subsite-url>] [–subsite-destination=<blog-id|subsite-url>] [–theme-files=<all|theme-one,theme-two,theme-etc>] [–plugin-files=<all|plugin-one,plugin-two,plugin-etc>] [–exclude-theme-plugin-files=<string>] Allows you… Read more
Delicious Brain Bytes: DE{CODE} Registration Open, Plugin Madness, and Running Doom on Bacteria
In this issue of Delicious Brain Bytes, we open the doors on DE{CODE} 2024, look into the “sustainability crisis” in open source, and much more. Registration Open for DE{CODE} 2024… Read more
How to Use WebP Images on WordPress
Serving lightweight WebP images can help boost your site speed, critical to the user experience and as a ranking factor. In this article, we’ll look at a few different ways… Read more
Everything You Need to Know About Installing WordPress in a Subdirectory
In this article, we look at the benefits and limitations of installing WordPress in a subdirectory, how to install and manage subdirectory installs, and how to move WordPress core out… Read more
Strategies for Handling Large WordPress Media Libraries in Dev and Staging Environments
Offloading your media files is a well-known tactic for speeding up your WordPress sites, but WP Offload Media can also greatly reduce the time it takes to replicate a new… Read more
Head-to-Head: WordPress Export/Import vs. WP Migrate
The internal import and export tools in WordPress work pretty well…if the site you’re migrating is relatively small, doesn’t use a custom theme, and wasn’t built with any tricky coding.… Read more
WordPress Plugin Development Best Practices: Plugin Templates
WordPress functionality is largely defined by the available plugins, and many clients want functionality that’s best served with a custom plugin. The initial setup is often a tedious affair, with… Read more
The Developer’s Advanced Guide to the wp-config File
How well do you really know wp-config? There’s a surprising amount of power in those few lines of PHP! This article is a tour of some bits of wp-config that… Read more
How to Switch Your WordPress Site from HTTP to HTTPS
Just about every WordPress website should be served over HTTPS instead of HTTP, for reasons of both security and SEO. HTTP content isn’t encrypted, leaving your site vulnerable, and Google… Read more
Managing Your WordPress Site With Git and Composer
Managing WordPress with Git and Composer has some big advantages. In particular, it can give you version control and helps get new people up to speed quickly. But it’s not… Read more
Backup Plugin Battle: Which is the Best WordPress Backup Plugin in 2022?
Backing up your site is a little like buying fire insurance. You never need it outside of a catastrophe, but not having it is just going to make the catastrophe… Read more