How to Build WordPress Plugins with AI: Claude Code + WordPress Studio Setup Guide


Want to build WordPress plugins using AI? 

This guide shows you how to set up Claude Code and WordPress Studio to create working plugins with text prompts.

Claude Code is Anthropic’s AI coding assistant. WordPress Studio is a free local WordPress environment. Together, they let you go from idea to a working plugin in minutes — no deep coding knowledge required.

This walkthrough covers the complete setup and shows you how to build your first plugin.

1. Install Claude Code

Head to Claude Code and sign up for an account — you can choose any paid plan available. 

Run the native installer from the setup page and follow the on-screen instructions to complete the installation.

The installation runs for a minute or two. When it finishes, Claude Code is ready to use.

Screenshot showing the installation of Claude Code

2. Install WordPress Studio

Download WordPress Studio — it’s completely free and works on both Mac and Windows.

Install it, then create a new site. Give it any name you want — e.g., “My WordPress Website” works fine.

Screenshot of the WordPress Studio website.

Because Studio runs locally on your computer, everything you build stays safely contained on your machine — so you can experiment with AI-generated plugins without risking a live website.

3. Start Claude Code

Using the Open in… options on the Overview tab in Studio, click Terminal. This will open a terminal window at your project file’s location.

Screenshot of the WordPress Studio Overview screen.

Then, type claude. If it’s your first time, you’ll be prompted to log in to your Claude account and confirm that you trust the files in this folder.

Click Enter/Return on your keyboard to trust the folder, and you’ll see the welcome message.

Screenshot of the Claude Code welcome message.

5. Build your first plugin

In the Claude terminal, describe what you want. Give it some context about where you are and what you need. For example:

“We are in the root of the WordPress site folder. I want a simple plugin that prints out ‘Hello [Your Name]’ in the admin of the site.”

Screenshot of a prompt instructing Claude Code to create a plugin.

From here, Claude will ask some follow-up questions, create a plugin folder, and generate the complete plugin file with proper WordPress structure.

Screenshot of the Claude Code plugin creation confirmation message.

6. Activate and test

Go back to WordPress Studio and open your WordPress admin. Navigate to Plugins, find your new plugin, and activate it.

Screenshot of the Plugins page in WordPress Admin.

If the plugin works correctly, your custom message will appear at the top of the admin area — in our case, “Hello Nick” shows up as an admin notice. 

If you haven’t changed your name, you may see it say “Hello admin.” Simply go to your Users list and change the name of your default user.

Screenshot showing the output of the plugin created with Claude Code.

This is the simplest plugin possible, but it shows how fast you can build with Claude and WordPress.

7. Keep building

From here, you can add more features. 

Go back to the Terminal in your editor and ask Claude to add new functionality — settings pages, custom blocks, whatever you need.

As with any AI tool, experimenting with prompting will help you achieve better results:

  • Give Claude context about where you are in the file structure
  • Be specific about what you want the feature to do
  • Break complex features into smaller steps
  • Ask Claude to explain the generated code if something doesn’t make sense

Bonus tip: Telex — an alternative for WordPress blocks

Telex is another unique tool that helps you generate WordPress blocks with AI — and it’s completely free to use.

Just describe what WordPress block you want, and Telex builds it with a live preview in WordPress Playground.

Screenshot of the Telex AI-powered WordPress block generator.

Test it, refine it with follow-up prompts, then download it as a plugin and install it on your WordPress site.

Screenshot of a pricing table block created with Telex.

You’re ready to build with AI

You now have an AI-powered setup for building plugins for your WordPress site.

  • Describe the plugin you want to build, and watch Claude generate working code inside your WordPress Studio site.
  • Experiment with Telex to create entire WordPress blocks.
  • Keep experimenting and trying new things.

Start simple, then tackle more complex projects as you get comfortable.

And if you build something fun, share it in the comments — we’d love to see what you make.



Source link

  • Related Posts

    In Praise of Laziness – Why Staying at Home Might Make You a Better Photographer

    In our work-obsessed civilisation, laziness is anathema. For centuries, philosophers, politicians and self-help gurus have criticised idleness. Solon, the founder of Athenian democracy, supposedly said that ‘laziness is the mother…

    WordPress Hosting vs Web Hosting: Explained for Beginners

    Web hosting provides an online environment for running your website. WordPress hosting optimizes your environment so WordPress websites can operate at their best. WordPress hosting is often the better choice…

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    You Missed

    How to Choose the Right TV in 2026 (and a Few We Like)

    How to Choose the Right TV in 2026 (and a Few We Like)

    NBA’s big tanking problem, JJJ injured, awards check-in + thoughts entering All-Star break

    NBA’s big tanking problem, JJJ injured, awards check-in + thoughts entering All-Star break

    Airbus Wins Major Air Canada Order for A350 Widebody Jets

    John Ivison: Carney seeks ‘parliamentary exchange’ with a China that targets our MPs

    The Gucci Borsetto Is 2026’s New It Bag

    The Gucci Borsetto Is 2026’s New It Bag

    LIVE: Atletico Madrid vs Barcelona – Copa del Rey, semifinal first leg | Football News

    LIVE: Atletico Madrid vs Barcelona – Copa del Rey, semifinal first leg | Football News