
Snippets for running WordPress in production: wp-config per environment, WP-CLI, logging, maintenance mode and safe deploys.

Set the WordPress site URL in wp-config for a headless setup: keep WP_HOME on the CMS and send permalinks, REST links and visitors to your front end.

A WP-CLI command that lists WordPress cron jobs and flags overdue events and hooks with no callback. Add –strict and it can fail a deploy check.

Put WordPress into maintenance mode without a plugin: visitors get a 503 page with Retry-After, administrators keep using the site.

Disable WordPress automatic updates for major core versions, plugins and themes, while minor security releases keep installing on their own.

Stop the WordPress emails sent after successful automatic core, plugin and theme updates, but still get an email when an update fails.

A custom WP-CLI command that reads every admin account straight from the database and flags admins hidden from the Users screen.
3rd party plugins actions admin admin bar archive block-themes block editor Blocks block styles block theme build core CSS custom post types debugging development gutenberg hook hooks Image img javascript load styles media Must Have npm options Oxygen performance php plugins production react rest api scripts organizer security single product theme.json Tips updates WooCommerce wordpress wp-cli wp-cron WP Admin