wp_get_option
Read a WordPress option by exact name to verify its existence and retrieve its stored value, including non-autoloaded options. Returns the value exactly as stored by the site.
Instructions
Read one wp_options row by exact name (works for non-autoloaded options too).
Read-only. CHECK exists, not the value: an option may legitimately hold '', 0 or
false, so a falsy value on its own does not mean "not set". Values come back as
the site stores them (WordPress serializes everything to a string, so a number can
read back quoted). Requires the REST transport, wp-ops-connect 1.3.0+ and an
administrator app password.
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": {
"install": "<install>",
"name": "<name>"
},
"name": "wp_get_option"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| install | Yes |