snippet_deactivate tool reference for WPCode / Code Snippets / Woody
Writedeactivates a snippet by ID.
Description
deactivates a snippet by ID.
What it is for
- Turning off custom code without deleting it.
Example use case
emergency rollback.
Sample prompt
Deactivate snippet ID 19 immediately because it is causing an issue on the frontend.
Sample response
{
"tool": "snippet_deactivate",
"status": "ok",
"updated": true
}
What does snippet_deactivate do?
deactivates a snippet by ID.
Does snippet_deactivate modify site data?
Yes. It can create, update, activate, deactivate, or delete data depending on arguments.
Which capability is commonly required?
It usually runs with controls compatible with manage_options and the active MCP profile.
How should snippet_deactivate be used safely?
Require confirmation, test in staging first, and verify rollback coverage.
Which plugin is required?
WPCode / Code Snippets / Woody must be installed and active in the target WordPress environment.
