Add a Code Snippet and Confirm It Runs Clean with AI
Get a custom snippet written, approved by you, saved switched off, and then checked for errors after you turn it on.
Works with AI · Verified on v2.3.9
Connect WPCode to Claude, ChatGPT, or any AI assistant with WPVibe. Find the snippet that is breaking your site, audit what is running, check the library before writing code, and add new snippets that stay off until you enable them.
One connection gives your assistant structured, permission-checked access to the whole site.
See which snippet is throwing errors, with the exact message, the line, and the page that triggered it.
A plain-English inventory of every snippet: what runs, what is off, what fails, and what nobody remembers adding.
Check the WPCode library for a tested snippet before any custom code gets written.
New snippets go through an approval screen and are saved switched off. Only you can enable them.
After you turn a snippet on, your AI checks it for errors and confirms the change on the live page.
Find out at a glance whether safe mode or error logging is on.
Paste any of these into Claude or ChatGPT once WPCode is connected.
Add the free WPVibe plugin from WordPress.org to the site running WPCode.
Claude, ChatGPT, Cursor, and more. One click to authorize, and no passwords ever go in the chat.
“One of my snippets is breaking something. Which one is it, and what is wrong with it?”
Copy-paste playbooks, each one tested on a live WPCode install before it ships.
Get a custom snippet written, approved by you, saved switched off, and then checked for errors after you turn it on.
Describe what you want your site to do and find out whether WPCode already has a tested snippet for it, before your AI writes new code.
Get a plain-English inventory of every code snippet on your site: what is running, what is switched off, what is failing, and what nobody remembers adding.
Ask which WPCode snippet is throwing errors and get the exact error, the line, the page that triggered it, and a proposed fix that stays switched off until you turn it on.
Add PHP snippets the safe way, as rows you can switch on and off that survive theme updates, never by editing functions.php.
WPCode registers these with the WordPress Abilities API under the wpcode namespace. Your AI finds them with discover_abilities and calls them with run_ability; writes go through WPVibe’s approval gate. Verified means we ran it on a live install of v2.3.9. Registered means a fresh install of v2.3.9 ships it and we have not run it yet.
Requires WPCode 2.3 or newer on WordPress 6.9 or newer. The free version is enough for every recipe here.
| Ability | What it does | Access | Status |
|---|---|---|---|
|
List Code Snippets wpcode/list-snippets
|
Provides a summary of all snippets and their active/inactive status. | Read | Verified |
|
Detect Snippet Errors wpcode/detect-snippet-errors
|
Checks if WPCode's error handler has flagged a snippet, with the message, line, time, and URL. | Read | Verified |
|
Get Error Logs wpcode/get-error-logs
|
Lists recent snippet-related error log files and how many snippets are affected. | Read | Verified |
|
Search WPCode Library wpcode/search-library
|
Queries the WPCode Cloud Library for snippets matching a keyword. | Read | Verified |
|
Get WPCode Settings wpcode/get-settings
|
Reads global settings: version, error logging, and safe mode status. | Read | Verified |
Behavior the ability descriptions do not mention. WPVibe’s WPCode skill already accounts for each of these.
Works with AI is WPVibe’s verification program. Every ability marked verified was run on a live WPCode install, and we rescan WordPress.org weekly so a release that adds or removes abilities shows up here before it surprises you.
Learn more about WPCode at wpcode.com.