pressable_disable_site
Disable a specific WordPress site by ID or name to temporarily take it offline or prepare for maintenance using the Pressable API.
Instructions
Disable a specific site.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The site ID or name |
Implementation Reference
- tools/sites.js:66-78 (handler)The 'pressable_disable_site' tool is defined as an object within the 'siteTools' array in 'tools/sites.js'. The 'handler' property contains the asynchronous function that sends a POST request to the '/sites/${args.id}/disable' endpoint using the 'api' helper.
name: 'pressable_disable_site', description: 'Disable a specific site.', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'The site ID or name' } }, required: ['id'] }, handler: async (args) => { return await api.post(`/sites/${args.id}/disable`); } },