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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fixes | Yes | Array of check IDs to fix (e.g. ["permalinks", "xmlrpc"]) |