Deactivate a plugin
wp_deactivate_pluginDeactivate an installed WordPress plugin by its exact file path and return whether it was active beforehand; AlphaBridge core plugins are excluded to protect the connection.
Instructions
Deactivate a plugin by its file path as wp_list_plugins lists it (e.g. akismet/akismet.php). The answer says in was_active whether it was active before. AlphaBridge itself (AlphaBridge MCP, AlphaBridge MCP Pro, the owner drop-in) is refused here, because deactivating it would end this connection or take tools away from it; it is deactivated in wp-admin under Plugins. wp_activate_plugin is the reverse.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plugin | Yes | Exact identifier of an installed plugin as wp_list_plugins returns it in file, e.g. "akismet/akismet.php". Anything else is refused. |