21 articles
Knowledge Base
WordPress CLI & API
21 articles in the WordPress CLI & API category.
- WooCommerce scheduled sale not starting or ending: fix Find out why a WooCommerce scheduled sale did not start or end on the date you set, and get the right price in front of shoppers again. You will check the stored dates, the background jobs that switch the price, and the caches that keep the old one.
- WooCommerce webhook disabled or not delivering: fix it Find out why a WooCommerce webhook stopped sending orders to your accounting, warehouse or automation tool, fix the cause, and turn it back on without it switching off again. You will also re-send the orders it missed and add an alert for next time.
- WordPress REST API authentication methods compared Choose between cookie and nonce authentication, application passwords, and JWT or OAuth plugins for the WordPress REST API. You will see how each method proves who is calling, what it costs to revoke, and how to test which ones your site accepts.
- Install WP-CLI on cPanel and Run It as the Account User Install WP-CLI on a cPanel server, either inside one account without root or server-wide as root, and confirm it works. Then run it as the account user, with the same PHP version as the website, so it doesn't leave files the site cannot change.
- Bedrock and Composer for Agency WordPress Portfolios Run every client WordPress site as the same Bedrock project, pin plugin versions per site in composer.lock, keep secrets in a per-server .env file, and deploy with composer install into a symlinked release directory.
- WordPress plugin dependencies: required plugins are missing Fix WordPress plugin dependencies when an add-on will not activate, a parent plugin cannot be deactivated, or a deployment fails because required plugins are missing. You will read the Requires Plugins header, activate plugins in the right order and repair slug mismatches without editing core.
- Update WordPress via WP-CLI on cPanel: verify-checksums first, then update Update WordPress with WP-CLI on cPanel safely by running verify-checksums before you change anything, then updating core, the database, plugins and themes in that order. A tested restore point and a second checksum pass afterwards give you evidence that the site came through intact.
- WordPress search-replace after a domain change on cPanel How to run wp search-replace after a WordPress domain change on cPanel without corrupting serialized data — the flags that matter, the backup and rollback, and the layers a database replace never reaches.
- WordPress background-process audit — Action Scheduler queue health, WP-Cron, runaway jobs Action Scheduler, WP-Cron, and system cron all run background work on WordPress. The audit that finds the runaway job, the orphaned queue, and the silent cron failure.
- WP-CLI in CI — running site checks, plugin audits, and security scans on every PR WP-CLI is the most under-used quality gate in WordPress. The CI patterns that actually catch the regression before it ships, without doubling the pipeline runtime.
- WP-CLI commands you actually use on cPanel — a practical cheatsheet The WP-CLI commands that come up daily on a managed WordPress on cPanel — core, plugin, theme, user, database, and search-replace — with the flags that matter.
- WordPress REST API — custom endpoints, auth, and rate limits A WordPress REST API custom endpoint is six lines of PHP. Making it survive auth, rate limiting, schema validation, and a public audience is the actual work.
- WordPress WP-CLI batch operations across a fleet of sites Running one WordPress WP-CLI command against one site is easy. Running the same command against 40 sites with rollback, per-host failure handling, and a usable report needs a different shape.
- WordPress WP-CLI advanced commands — the 15 that earn their keep Past wp plugin list and wp db export, WordPress WP-CLI ships 15 advanced commands that turn a one-off task into a script. The ones that actually move the needle in production.
- WordPress AJAX errors: debugging admin-ajax 400s and 500s WordPress admin-ajax errors hide the real failure behind a 400 or 500. Here is how to debug WordPress AJAX calls — nonce failures, permission checks, and PHP fatals.
- WordPress with Composer — when it's worth the switch Managing WordPress with Composer pays off above a portfolio threshold. The honest decision tree on when to convert a WordPress site to Composer-managed and when to leave it alone.
- WordPress WP-CLI on remote servers via SSH — patterns that hold up WordPress WP-CLI is built to run remotely via SSH using --ssh, alias files, and ~/.wp-cli/config.yml. The patterns that keep one operator command working across 40 servers.
- WordPress deployment automation — GitHub Actions and Bitbucket Pipelines Automating WordPress deployments with GitHub Actions or Bitbucket Pipelines. The pipeline shape that survives plugin updates, database migrations, and a rollback that needs to work on Friday at 5pm.
- Safe WP-CLI batch operations across thousands of objects Running WP-CLI against a few posts is easy. Running it against 300,000 posts or every transient on a site needs throttling, idempotency, and resumability.
- WordPress REST API errors: debugging the rest_no_route, rest_forbidden, and 500s WordPress REST API errors come in a small number of recognizable patterns. Here is how to debug each WordPress REST failure — from rest_no_route to authentication mismatches.
- Safely deactivating a WordPress plugin from the command line When wp-admin is down, the right way to disable a misbehaving WordPress plugin is via WP-CLI — not by renaming directories. Here is the procedure that preserves hooks.