Maintenance Mode

Usage

For sites on our WordPress.com platform, the maintenance mode plugin is enabled by default. To activate the plugin, simply set the constant in your theme (see below).

If your site is on the VIP Go platform, you’ll need to first commit the plugin to your repo, before it can be activated using the constant as shown below.

Regardless of the platform you’re on, please remember to always test locally before committing your code or submitting your PR to us for review. Once this code has been committed, you can open a browser page which you are not logged-in to view the maintenance mode page.

IMPORTANT: if you’re not seeing maintenance mode enabled on the frontend of your site, check the (WordPress.com) logged-in vs. logged-out experience…they’re different, by design!

Add the VIP_MAINTENANCE_MODE constant to your theme and set to true:

define( 'VIP_MAINTENANCE_MODE', true );
...
// And be sure to load the plugin itself!
wpcom_vip_load_plugin( 'maintenance-mode' );

Custom Template

To add a custom template / messaging:

  • Add a template to your theme’s root folder called template-maintenance-mode.php.
  • This should be a simple HTML page that should include the message(s) you want to show your visitors.
  • Note: the template should include wp_head() and wp_footer() calls.

Ready to get started?

Tell us about your needs

Let us lead the way. We’ll help you select a top tier development partner. We’ll train your developers, operations, infrastructure, and editorial teams. We’ll coarchitect your deployment processes. We will provide live support for peak events. We’ll help your people avoid dark alleys and blind corners, and reduce wasted cycles.