WordPress code reference
wp_codeFinds the official reference page for exact WordPress names: functions, hooks, classes, methods, WP-CLI commands, REST routes, core blocks and @wordpress packages. Use before writing or reviewing code that calls one, to confirm it exists in WordPress core, since which version, and whether it is deprecated. Pass up to 8 names in one call. Returns links with a one-line summary, never the page content; a name that is not in WordPress core is reported as not found. For a guide or a plugin's documentation, use wp_docs.
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": {
"names": "<names>"
},
"name": "wp_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | Yes | Exact names, separated by commas: "get_theme_mod, save_post, WP_Query::get_posts, wp plugin list, /wp/v2/posts, core/paragraph" |