=== ID Maintenance Mode ===
Contributors: insightdezign
Tags: maintenance mode, coming soon, under construction, maintenance page, bypass
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.2
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Toggle maintenance mode with a custom page and a shareable bypass link for client previews.

== Description ==

ID Maintenance Mode lets you put your site into maintenance mode with a single checkbox. Customize the maintenance page with your own content, background color, and background image.

**Features:**

* One-click enable/disable maintenance mode
* Custom background color (color picker)
* Custom background image (media library upload)
* Rich text editor for maintenance page content
* Default maintenance page layout out of the box
* Bypass link with query string — share with clients so they can preview the site
* Bypass cookie lasts 7 days — clients don't need the link on every visit
* Admin bar indicator when maintenance mode is active
* Logged-in administrators always bypass maintenance mode
* Proper 503 status code and Retry-After header for SEO

**Bypass Link:**

The plugin generates a unique bypass URL you can share with clients. When they visit the link, a cookie is set that lets them browse the site normally for 7 days while everyone else sees the maintenance page. You can regenerate the link at any time to revoke access.

== Installation ==

1. Upload the `id-maintenance-mode` folder to `/wp-content/plugins/`.
2. Activate the plugin through the Plugins menu.
3. Go to Settings > Maintenance Mode to configure.

== Frequently Asked Questions ==

= Can clients preview the site during maintenance? =

Yes! Copy the bypass link from the settings page and share it with your client. They'll be able to browse the site normally for 7 days.

= What happens to the bypass link when I disable maintenance mode? =

The bypass cookie remains but has no effect when maintenance mode is off. When you re-enable maintenance mode, existing bypass cookies still work (unless you regenerated the link).

= Does maintenance mode affect the REST API or wp-admin? =

No. Maintenance mode only affects frontend page loads. The admin area, REST API, AJAX, and login page remain accessible.

= What about SEO? =

The maintenance page returns a 503 (Service Unavailable) status code with a Retry-After header, which tells search engines the site is temporarily down and to check back later.

== Changelog ==

= 1.0.0 =
* Initial release.
