Import ACF JSON via WP-CLI
acf_import_jsonImports a specified ACF JSON file to update WordPress ACF structures using WP-CLI.
Instructions
Run the whitelisted wp acf json import <file> command. This may update WordPress database ACF structures.
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": {
"file": "<file>"
},
"name": "acf_import_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes |