A thread · 6 notes · Engineering
The WordPress toolbox.
WP-CLI, the REST API, backups, the database and locking down admin accounts, all checked against the current docs.
- 1
WP-CLI: The Commands I Keep Coming Back To
The short list of WP-CLI commands worth knowing by heart, the few that bite, and what I fixed in my own old notes after checking them against the current docs.
- 2
The WordPress REST API Without a Plugin: Reading, Creating and Updating Content
Every WordPress site since 5.6 can be driven over HTTPS with an application password and nothing else installed. Here's how to read, create and update content from PowerShell.
- 3
Backing Up a WordPress Site from Windows with PowerShell
One script that dumps a WordPress database and zips the site files into a dated folder, with the password kept off the command line and a -WhatIf that really works.
- 4
Looking After a WordPress Database: Backups, Cleanup and Search-Replace Done Safely
The WordPress database is where sites actually break. Back it up first, clean it with WP-CLI instead of raw SQL, and never swap URLs with a plain REPLACE, because serialized data won't survive it.
- 5
The Dev Toolbox for a WordPress Build
What I set up before writing a line of theme or plugin code: a local copy, the debug switches, WP-CLI's scaffolding and a profiler. Condensed from a very long page of old notes.
- 6
Locking Down WordPress Admin Accounts
Stop making admins with a SQL INSERT, give every person and script its own account at the lowest role that works, and switch off the dashboard's file editor. A short hardening list for WordPress.