Dev Tools API endpoints were added in v2.4.0.
/wp-json/wp-manager-pro/v1/dev-tools
All endpoints require X-WP-Nonce header with a wp_rest nonce and the manage_options capability.
GET /dev-tools/wp-config
Returns all parseddefine() constants from wp-config.php, grouped by category.
Response
Object with keys
database, debug, salts, urls, memory, custom. Each key contains an array of constant objects.Whether
wp-config.php is writable by the web server.Resolved file path to
wp-config.php.File size in bytes.
POST /dev-tools/wp-config
Update or add adefine() constant in wp-config.php.
Parameters
Constant name to update or create.
New raw value string. Strings should be quoted (e.g.
"'my-value'"), booleans unquoted (true/false).Response
Always
true on success.GET /dev-tools/htaccess
Returns the content of the root.htaccess file.
Response
Full
.htaccess file content.Whether the file exists.
Whether the file is writable.
File size in bytes.
Resolved file path.
POST /dev-tools/htaccess
Write new content to.htaccess.
Parameters
Full new
.htaccess content to write.Response
Always
true on success.GET /dev-tools/phpinfo
Returns parsed PHP configuration grouped by extension/module.Response
Array of section objects.
PHP version string.
GET /dev-tools/query-monitor
Returns database queries captured during the request. RequiresSAVEQUERIES to be true in wp-config.php.
Response
Returns an array of query objects:The SQL query string.
Execution time in seconds.
PHP function/method that triggered the query.
true if the query took longer than 0.05 seconds.GET /dev-tools/environment
Returns server environment variables available via$_SERVER and PHP environment.
Response
Returns an object where each key is an environment variable name and the value is its string value.POST /dev-tools/environment
Update a runtime environment setting (where supported by the server configuration).Parameters
Environment variable name.
New value to set via
putenv().Response
Always
true on success.