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

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 buttons core CSS custom post types development filters full site editing gutenberg hook hooks Image javascript load styles media Must Have Oxygen performance php plugins react rest api scripts organizer security SEO single product tailwind theme.json Tips updates WooCommerce wordpress wp-cli wp-cron WP Admin