Toggle Maintenance Mode is a WordPress ability from SeedProd — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Toggle Maintenance Mode
WriteTurn SeedProd's maintenance mode page on or off, serving a 503 status to search engines while it's active.
Requires the SeedProd (coming-soon) plugin active on a WordPress install where the Abilities API's wp_register_ability function exists (WP 6.9+) — abilities are wrapped in a function_exists check and register only when it does. Individual abilities additionally require the 'manage_options' capability (get-status, toggle-coming-soon, toggle-maintenance), the 'edit_pages' capability (list-pages, get-page), or the capability returned by the 'seedprod_lpage_capability' filter, which defaults to 'edit_others_posts' (save-page).
What it does
This ability enables or disables SeedProd's maintenance mode via a required enabled boolean, with an optional page_id to specify which page to bind. Enabling it automatically disables coming soon mode, since the two are mutually exclusive 'site offline' states. When enabled, non-logged-in visitors see the maintenance page and search engines receive a 503 response. If no maintenance page exists and none is supplied, the ability returns an error prompting the caller to create one first with seedprod/save-page.
See it in action
You ask your AI assistant
"Enable maintenance mode on my site while I finish updating it."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| enabled | boolean | Yes | Whether to enable (true) or disable (false) maintenance mode. |
| page_id | integer | No | Optional. The ID of the SeedProd page to use. If omitted, uses the existing page. |
Returns
An object with success (boolean), the resulting enabled state, and the page_id now bound to maintenance mode.
Permission
The current user must have the 'manage_options' capability.
More SeedProd abilities
Get SeedProd Page
Retrieve a single SeedProd page's metadata, or its full section content when requested.
Get SeedProd Status
Read whether coming soon, maintenance, login, and 404 modes are active, along with license and version details.
List SeedProd Pages
List every SeedProd landing page, mode page, and theme template with its ID, title, type, and status.
Save SeedProd Page
Create a new SeedProd page or update an existing one, including its section/row/block content and mode activation.
Toggle Coming Soon Mode
Turn SeedProd's coming soon page on or off for visitors who aren't logged in.