Set Jetpack module status is a WordPress ability from Jetpack — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Set Jetpack module status

Write
Jetpack Backup & Site Management jetpack/set-module-status

Activate or deactivate a single Jetpack module by slug.

Requires the Jetpack plugin on WordPress 6.9+. Abilities are registered by several bundled Jetpack packages (automattic/jetpack-backup, jetpack-connection, jetpack-forms, jetpack-stats) plus the main plugin's own registrars for Related Posts, Shortlinks, Sitemaps, Newsletter/Subscriptions, and Monitor. Permission requirements vary by ability — most gate on 'manage_options', 'jetpack_admin_page', or 'view_stats', while Forms abilities use 'edit_pages'. Backup abilities only register when a Backup product/plan is active; Sitemaps, Monitor, and Newsletter abilities only register when their respective module is turned on.

What it does

This ability sets a Jetpack module's active state given its slug and a desired boolean, returning the resulting slug, active state, and a changed flag. It is idempotent: setting a module to its current state returns changed=false. Before writing, it refuses activation with jetpack_modules_conflicting_plugin_active if a conflicting standalone plugin is already active, and it calls Jetpack's activate/deactivate routines with redirects disabled so the REST request isn't killed by an internal redirect. After writing it re-verifies the actual state and returns jetpack_modules_state_mismatch if a filter blocked the change. Call jetpack/get-modules first to confirm the exact slug.

See it in action

You ask your AI assistant

"Activate the Jetpack Stats module on my site."

Inputs

Name Type Required Description
slug string Yes The Jetpack module slug to toggle (e.g. "stats", "sso", "sharedaddy").
active boolean Yes Desired active state: true activates the module, false deactivates it.

Returns

An object with slug, the resulting active state, and a changed boolean. Possible errors include jetpack_modules_missing_slug, jetpack_modules_invalid_slug, jetpack_modules_activate_failed, jetpack_modules_deactivate_failed, jetpack_modules_state_mismatch, and jetpack_modules_conflicting_plugin_active.

Permission

The current user must have both the 'jetpack_manage_modules' and 'jetpack_activate_modules' capabilities.

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.