Maintenance Switch
Customize easily and switch in one-click to (native) maintenance mode from your backend or frontend.
Install in
One-click maintenance mode
This plugin adds a button to the admin bar for toggling the builtin maintenance mode.
Core maintenance mode
A .maintenance file is generated and copied to the WordPress installation folder when turning on the maintenance mode.
A maintenance.php file is generated and added to the wp-content folder for custom HTML code.
Your custom maintenance page will also be active during the core, plugins and themes updates.
Special Features
-
set which roles can switch the maintenance mode
-
set which roles can bypass the maintenance mode on the frontend
-
set the entire HTML code used for the maintenance page
-
preview the maintenance page before saving
-
enable the theme file support, so you can create in each your themes a maintenance.php file to customize the maintenance page
-
restore all default settings
-
restore default HTML code
-
create/delete the maintenance file in the active WP theme
Translations
- English – default, always included
- French
Written by Joobi from the project's own listing. See the source page
1.7.4
- WordPress 7.2 compatibility confirmed (tested against 7.2-RC3), verified with the official Plugin Check tool
- PHP 8.6 compatibility confirmed
- Fix: “translation loading triggered too early” notice (default maintenance page strings are now built on demand instead of at plugin load)
- Fix: undefined array key warnings for REMOTE_ADDR / REQUEST_URI when WordPress is loaded from the command line (e.g. system cron) during maintenance
1.7.3
- WordPress 7.1 compatibility confirmed (tested against 7.1-RC3), verified with the official Plugin Check tool
- Fix: Requires at least raised from 3.5 to 5.0 to match the actual minimum WordPress version required by functions used (wp_unslash, wp_enqueue_code_editor)
- Fix: removed manual translation loading (deprecated since WordPress 4.6; translations are auto-loaded for WordPress.org-hosted plugins)
- Fix: replaced discouraged unlink() with wp_delete_file()
1.7.2
- WordPress 7.0 compatibility confirmed
- Updated minimum PHP requirement to 7.4 (aligned with WordPress 7.0)
- Admin CSS updated to use WordPress CSS variables for compatibility with the new Modern admin theme
- Fix: admin bar icon color now inherits native WordPress styles (was grey instead of white)
- Fix: admin bar button text and icon stay white on red background when maintenance is active
- Fix: admin bar button focus state cleared after toggle (no more blue highlight)
- Fix: IP address input field aligned with adjacent button (added type=”text” and class=”regular-text”)
- Added .distignore to exclude dev files from WordPress.org deployment package
1.7.1
- WordPress 6.9 compatibility confirmed
- Improved WordPress Coding Standards compliance
- Global variables now properly prefixed with maintenance_switch_
- Functions renamed with correct prefix for better naming conventions
- Added backward compatibility wrappers for smooth updates
- Code quality improvements and optimizations
1.7.0
- WordPress 6.8 compatibility tested
- Enhanced security improvements
- Code modernization
1.6.0
- WordPress 6.3 compatibility tested
- PHP 8.1 compatibility improvements
- Replace deprecated wp_specialchars_decode() with htmlspecialchars_decode()
- Fix fatal error with function redeclaration in .maintenance template
- Modernize plugin for current WordPress standards
1.5.2
- Fix the preview page bug with code editor
1.5.1
- Fix the disabled code field bug
- Enqueue admin assets only on settings page
1.5.0
- Add a gitignore and gulp files
- Add the wp code editor to the page HTML setting
- Test for compatibility with WordPress 4.9
1.4.0
- Add a info link about moving to GitHub
- Test for compatibility with WordPress 4.7
1.3.8
- Adding an option for stoping to return 503 error code
1.3.7
- Fix a bug of settings initialization
1.3.6
- Fix a php in_array warning in admin display
1.3.5
- Fix a php error in the admin
1.3.4
- Fix a bug with migration of settings
1.3.3
- Fix bug with data saving
- Fix bug with HTML encoding
- Fix bug with files generation
- Fix a very persistent bug with settings migration
1.3.2
- Fix a persistent bug with settings migration
1.3.1
- Fix a PHP4 compatibility issue
- Fix a bug with settings migration
- Improve some styles
1.3.0
- Improve performances
- Implement WP Settings API
- Adding reset features
1.2.2
- Adding POT language file
- Updating language files
1.2.1
- Fix a bug with html code in preview page
- Fix a bug when delete theme file after activating it
1.2.0
- Improve the switch button appearance
- Adding Maintenance page preview
1.1.8
- Change the plugin description in admin area
1.1.7
- Adding roles management for maintenance control
- Fix a icon bug on the switch button
1.1.6
- Adding omitted translations
- Fix a bug about the HTML text config
1.1.5
- Adding French translations
- Improve the default HTML texts
1.1.4
- Fix the bug to get IP through a proxy
1.1.3
- Fix a ajax button bug
1.1.2
- Fix a deactivation bug after updates
1.1.1
- Fix a deactivation bug after updates
- Adding the status management in database
- Adding the ability to use a maintenance.php file in the theme
1.0.7
- Fix a saving bug in the settings page
1.0.6
- Fix a js bug with the “add my ip” button
1.0.5
- Fix a php syntax error in config.php
1.0.4
- Adding exceptions for IP addresses
1.0.3
- Adding automatic detection of the login url
1.0.2
- Ajusting the readme file
1.0.1
- Fully rewritten with http://wppb.me/ boilerplate.
- Adding activate and deactivate functionalities.
- Fix switch button styles and actions from frontend.
1.0.0
- A change since the previous version.
- Another change.
1.0-alpha
- First simple implementation of the main functionality
Follow this listing's changes (Atom feed)