draft_fix
Draft an ACTIVATABLE fix for a site and leave it for the OWNER to turn on from their own wp-admin. You do NOT change the site — you write the mu-plugin PHP, the reason in plain language, and how to roll back; the connector only shows it, and a logged-in admin activates it with one click (auto-disables itself if it fatals on first load). PAID plans only: if the site\x27s organization is free this is refused with "plan_required" — when that happens, just explain the fix in text instead so they can apply it by hand. The code must be a complete, self-contained mu-plugin file starting with <?php, guarded (e.g. function_exists / class_exists checks) so re-activation is safe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The complete mu-plugin PHP, starting with <?php. Guarded so activating twice is harmless. | |
| title | Yes | One line: what it fixes. | |
| reason | Yes | Why, in the owner's language. This is what they read before activating. | |
| run_id | No | The diagnosis run this came from, if any. | |
| site_id | Yes | Site id from list_sites | |
| rollback | No | How to revert if deleting the mu-plugin is not enough. Optional. |