Skip to content

Shut down your site for a little while and do some maintenance on it!

License

Notifications You must be signed in to change notification settings

benoitchantre/maintenance-mode-wp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run PHPUnit and PHPCS

Maintenance Mode

Shut down your site for a little while and do some maintenance on it!

Usage:

  • 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 you want to show your visitors.
  • Note: the template should include wp_head() and wp_footer() calls.
  • Add the VIP_MAINTENANCE_MODE constant to your theme and set to true.

Installation

  1. Install the plugin.
  2. Set the VIP_MAINTENANCE_MODE constant to true.
  3. Activate.

Default template screenshots

On Twenty Twenty-One:
Screenshot of active Maintenance mode on Twenty Twenty-One

On Twenty Twenty:
Screenshot of active Maintenance mode on Twenty Twenty

On Twenty Nineteen:
Screenshot of active Maintenance mode on Twenty Nineteen

On Twenty Seventeen:
Screenshot of active Maintenance mode on Twenty Seventeen

Changelog

0.2.2

  • Stop returning a 503 to Jetpack requests to prevent broken connection verification

0.2.1

  • Stop returning a 503 to Nagios on WPCom and VipGo to prevent alerting as a server error

0.2.0

  • Return a 503 header while maintenance mode is active (props benoitchantre)
  • Add an admin bar notice when Maintenance Mode is on (props benoitchantre)

0.1.0

  • Initial plugin

About

Shut down your site for a little while and do some maintenance on it!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 62.4%
  • Shell 37.6%