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

Write
SeedProd Page Builders seedprod/toggle-maintenance

Turn 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.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.