Call any REST endpoint
wp_restAccess any WordPress REST route directly for custom endpoints like WooCommerce, ACF, or menus. Discover available routes by calling GET on an empty path.
Instructions
Call any WordPress REST route directly. Use this for anything the dedicated tools do not cover — WooCommerce, ACF, menus, or a plugin's own namespace. Discover routes by calling GET on an empty path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body for writes. | |
| path | Yes | REST route without the /wp-json prefix, e.g. 'wp/v2/menus' or 'wc/v3/products'. Use '' to list all routes. | |
| site | No | Configured site name. Omit to use the default site. | |
| query | No | Query string parameters. | |
| method | No | GET |