Get WPCode Settings is a WordPress ability from WPCode — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Get WPCode Settings
Read-onlyRead WPCode's global settings, including plugin version and Safe Mode status.
Requires the WPCode (Insert Headers and Footers) plugin on WordPress 6.9+. All five abilities are read-only. 'list-snippets', 'detect-snippet-errors', and 'search-library' require the 'wpcode_edit_snippets' capability, while 'get-error-logs' and 'get-settings' require WordPress's 'manage_options' capability.
What it does
This ability returns a snapshot of WPCode's global configuration: the installed plugin version, whether error logging is currently enabled, and whether Safe Mode is active for the current request. Safe Mode is a per-request debugging feature triggered via a 'wpcode-safe-mode' query parameter that disables all snippet execution; the ability only reports it as active if both the query parameter is present and the current user holds the 'wpcode_activate_snippets' capability. This gives an AI assistant quick visibility into the plugin's operating state when diagnosing site issues.
See it in action
You ask your AI assistant
"What version of WPCode is installed, and is Safe Mode currently active?"
Returns
An object with version (string), error_logging (boolean), and safe_mode_active (boolean).
Permission
The current user must have the 'manage_options' capability.
More WPCode abilities
Detect Snippet Errors
Check whether WPCode's error handler has flagged a specific snippet, and get the failure details.
Get Error Logs
Pull the full stack trace and file list of recent snippet-related failures site-wide.
List Code Snippets
Get a summary of every WPCode snippet, its status, and whether it's currently erroring.
Search WPCode Library
Search the WPCode Cloud Library of pre-built snippet templates by keyword.