Skip to main content

Works with AI · Verified on v2.3.9

WPCode logo

Manage WPCode with AI

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.

3,000,000+ active installs 5 verified abilities Last verified Sep 20, 2026

What your AI can do with WPCode

One connection gives your assistant structured, permission-checked access to the whole site.

Find the broken snippet

See which snippet is throwing errors, with the exact message, the line, and the page that triggered it.

Snippet audits

A plain-English inventory of every snippet: what runs, what is off, what fails, and what nobody remembers adding.

Library first

Check the WPCode library for a tested snippet before any custom code gets written.

Write snippets safely

New snippets go through an approval screen and are saved switched off. Only you can enable them.

Verify after enabling

After you turn a snippet on, your AI checks it for errors and confirms the change on the live page.

Safe mode awareness

Find out at a glance whether safe mode or error logging is on.

Things to ask

Paste any of these into Claude or ChatGPT once WPCode is connected.

“One of my snippets is breaking something. Which one is it, and what is wrong with it?”
“Audit my code snippets: what is running, what is switched off, and what should I look at?”
“I want to disable comments everywhere. Check the WPCode library before you write anything.”
“Add a snippet that hides the admin bar for subscribers, then check it for errors once I turn it on.”

Up and running in three steps

1

Install WPVibe

Add the free WPVibe plugin from WordPress.org to the site running WPCode.

2

Connect your AI

Claude, ChatGPT, Cursor, and more. One click to authorize, and no passwords ever go in the chat.

3

Ask in plain English

“One of my snippets is breaking something. Which one is it, and what is wrong with it?”

Verified WPCode recipes

Copy-paste playbooks, each one tested on a live WPCode install before it ships.

Every WPCode ability

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

What we learned testing it

Behavior the ability descriptions do not mention. WPVibe’s WPCode skill already accounts for each of these.

  • All five WPCode abilities are read-only. Writing a snippet goes through the WPVibe code_snippet tool, which needs your approval and always saves the snippet switched off.
  • Your AI cannot enable or disable a snippet. That toggle stays with you in WPCode.
  • A snippet can be flagged with an error and still be active, when the failure is inside a hook that only fires on some pages.
  • Error detection works even when error logging is off. Logging adds the log files.
  • The snippet list does not include the code. Reading a snippet body takes a read-only WP-CLI post lookup.
  • Library search returns titles and descriptions, not code, so library snippets are installed from the WPCode library screen.
  • Editing a PHP snippet saves it switched off again, so it needs enabling after every change.

Verified, and kept that way

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.