A WordPress plugin to assist with debugging REST API requests.
- Install and activate this on the WordPress site you wish to debug
- Either define the
WP_DEBUG
constant as true via yourwp-config.php
file or include aWP_DEBUG=true
query parameter in your REST endpoint request.
This tool hooks into the WordPress REST Api and exposes data from generation of the response to a REST request. Currently the following data is exposed:
Header | Description |
---|---|
X-A8C-last-query |
The value of $wpdb->last_query . So whatever the last query was executed by $wpdb |
X-A8C-all-queries |
The value of $wpdb->queries filtered to only include queries generated by REST controllers. |
Create an issue outlining what you'd like to see on a request. Contributions also welcome!