Launch price: $49 one-time for all 55 specialists. Get it →
Claude Code for

Claude Code for WordPress

Build plugins and themes, fix speed and SEO, and keep your live site safe.

Short answer: Yes, you can use Claude Code with WordPress. It runs in your terminal and works on your site's files, so it can build plugins and themes, trace speed and SEO problems, and run WP-CLI commands. Work on a local or staging copy, and review every change before it goes live.

What do you want to do in WordPress?

Task 1 of 5Claude Code

Build a WordPress plugin with Claude Code

Use it when: You need a feature no existing plugin does cleanly, or a small custom plugin for a client.

Replace the [BRACKETS], then paste
Build a WordPress plugin called [PLUGIN NAME] that [WHAT IT SHOULD DO].

Requirements:
- Check a capability and a nonce on every form, AJAX handler and REST route
- Sanitize all input and escape all output
- Use the Settings API for any options
- Remove its options and tables on uninstall

Work in wp-content/plugins/[PLUGIN FOLDER]. Show me the plan before writing code, then tell me how to test it on my local site.

In the kit: the WordPress Plugin Engineer handles this.

Tip: Test on a local site first. The official @wordpress/env package starts one with Docker.

Task 2 of 5Claude Code

Build a WordPress theme with Claude Code

Use it when: You want a block theme, or custom blocks your editors can use without touching code.

Replace the [BRACKETS], then paste
Create a WordPress block theme called [THEME NAME] for [TYPE OF SITE].

Include theme.json with our colors and fonts: [COLORS AND FONTS]. Add templates for the home page, single post, page and 404, plus header and footer template parts.

Put it in wp-content/themes/[THEME FOLDER]. Editors must be able to change text and images in the Site Editor without code.

In the kit: the WordPress Gutenberg Engineer handles blocks and block themes.

Tip: Changing an existing theme? Ask for a child theme, so theme updates do not overwrite your work.

Task 3 of 5Claude Code

Fix WordPress speed and security with Claude Code

Use it when: Pages are slow, or you inherited a site and don't know what state it is in.

Replace the [BRACKETS], then paste
Audit this WordPress site for speed and security. The code is in this folder and the URL is [SITE URL].

Check autoloaded options, slow queries, heavy plugins, exposed endpoints and missing capability checks. Rank every finding by impact, and show the file and line or the command output behind it.

Do not change anything yet.

In the kit: the WordPress Performance and Security specialist handles this, and /wp-health runs it as one command.

Tip: Ask for the audit first and fixes second, so you decide what changes.

Task 4 of 5Claude Code

Find WordPress SEO problems with Claude Code

Use it when: Pages are missing from Google, or tag and archive pages are competing with the pages you care about.

Replace the [BRACKETS], then paste
Audit [SITE URL] for SEO problems WordPress itself creates: tag and author archives, pagination, plugin-generated pages, canonicals, noindex tags and the sitemap.

For each issue, give the URL, the evidence, and the template, plugin or setting causing it. Rank them by impact and propose a fix at the source.

Do not change anything yet.

In the kit: the WordPress SEO Auditor handles this, and /wp-seo-audit runs it as one command.

Tip: Claude Code cannot see rankings or traffic. Export the Pages report from Search Console and give it the file.

Task 5 of 5Claude Code

Connect Claude Code to WordPress with MCP

Use it when: You want Claude Code to act on a running site, not only on its files.

Replace the [BRACKETS], then paste
Help me connect this Claude Code project to my staging WordPress site with the official WordPress MCP Adapter plugin (github.com/WordPress/mcp-adapter).

Staging URL: [STAGING URL]
How I can connect: [WP-CLI OVER SSH OR AN APPLICATION PASSWORD]

Walk me through it one step at a time. Before we use it, list every ability the site exposes and tell me which ones can change data.

Tip: Start on staging. A connected AI client with write abilities can change real content.

WordPress specialists for Claude Code

Plain Claude Code can do all of the above. Agentsforce adds specialists that already know WordPress's rules, so you don't have to spell them out each time.

WordPress specialists in Agentsforce
JobSpecialists
BuildPlugin Engineer, Gutenberg Engineer, AI Engineer
FixPerformance and Security, SEO Auditor, Technical SEO
ContentContent Brief, Content Refresh, Internal Linking

You also get 10 WordPress skills, covering hooks, the REST API, block themes, database queries, migrations and more.

How to set up Claude Code for WordPress development

  1. Make a safe copy. Back up the site and work on a local or staging version, never the live one.
  2. Open the site folder. In your terminal, go to the site's folder and run claude.
  3. Add WordPress knowledge. The WordPress project publishes free Agent Skills. For ready-made specialists, Agentsforce installs them with one command.
  4. Review, then ship. Read what changed, test it on the copy, and deploy the way you normally do.

When Claude Code is not the right fit for WordPress

  • You only need to change a setting or edit a page in the dashboard.
  • You want a visual, click-to-edit tool. Claude Code runs in a terminal.
  • Your hosting plan gives you no access to the site's files.
  • Nobody can check the changes before they go live.

Claude Code for WordPress FAQ

Is there a Claude Code plugin for WordPress?

Claude Code isn't installed as a WordPress plugin. It runs on your computer and works on your site's files. To let it act on a running site, install the official WordPress MCP Adapter plugin on that site and connect Claude Code to it.

What are the best Claude Code skills for WordPress?

Start with the free Agent Skills from the WordPress project (WordPress/agent-skills on GitHub), which cover blocks, block themes, plugins, the REST API, WP-CLI and performance. Agentsforce adds nine WordPress specialists and 10 more skills if you want roles that are ready to use.

Can Claude Code build a WordPress theme?

Yes. A theme is a folder of files, so Claude Code can write a block theme or a classic theme from your description. Test it on a local or staging site, and check it on mobile before you activate it on the live site.

Does Claude Code work with Elementor?

Partly. It can write custom Elementor widgets, CSS and theme code. Elementor keeps page layouts as data in the WordPress database rather than in theme files, so make layout changes in Elementor's own editor.

Can Claude Code edit my live WordPress site?

It can if you give it access, but you shouldn't start there. A mistake on a live site affects real visitors and sales. Work on a local or staging copy, and deploy only the changes you have reviewed.

Do I need to know how to code to use Claude Code with WordPress?

You don't need to write code, but someone has to check the result. If you can't read PHP, ask Claude Code to explain each change in plain English and test it on a staging site. For anything touching payments or customer data, have a developer review it.

How much does Claude Code for WordPress cost?

Claude Code needs a paid Claude plan or API credits. Agentsforce is optional and costs a one-time $49 for all 55 specialists, including the WordPress ones.

Related guides

Give Claude Code a whole team. 55 specialists, one payment of $49.

Get Agentsforce