wp_fix_best_practices
Apply automated fixes for common WordPress best practice issues, including setting permalinks to /%postname%/ and disabling XML-RPC via mu-plugin. Pass the fix IDs to resolve them.
Instructions
Apply auto-fixes for best practice issues. Currently supports fixing: "permalinks" (sets to /%postname%/) and "xmlrpc" (disables via mu-plugin). Pass an array of fix IDs to apply.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fixes": "<fixes>"
},
"name": "wp_fix_best_practices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fixes | Yes | Array of check IDs to fix (e.g. ["permalinks", "xmlrpc"]) |