Vibe Code Your Own WordPress Plugin

Preparation for the 2-hour workshop at WordCamp Netherlands, Thursday 12 November 2026

In this workshop you build your own WordPress plugin with AI, and then check whether you would actually trust it. Two hours, no coding experience needed. What you do need is a working WordPress and an AI chat tool on the laptop you bring, and that is what this page is for. Plan about 15 minutes with Playground, or half an hour with LocalWP. Easiest if you do it at home beforehand. Didn't manage? No problem: at the start of the workshop you choose between Playground and LocalWP, and there are USB sticks with the LocalWP installer so the wifi doesn't have to carry it.

You're ready when you can see the Plugins screen of your own WordPress and you have an AI chat open in another tab.
Only 5 minutes? Do two things: open the workshop Playground link once to see that it loads, and sign in to an AI tool. That's enough to take part.

Step 1: Set up WordPress

You need a WordPress site where you can install and break plugins without consequences. Never use your real website for this. Pick one:

Option A: WordPress Playground (nothing to install)

Playground runs a complete WordPress inside your browser. The workshop link below also installs Plugin Check, the tool we use after the break to check your plugin.

  1. Open the workshop link: playground.wordpress.net/?plugin=plugin-check
  2. Wait until you see the Plugins screen. You're logged in as admin automatically.
  3. Check that Plugin Check (PCP) is in the list. If it says Activate under it, click that. Not in the list at all? Go to Plugins → Add Plugin, search for "Plugin Check", click Install Now, then Activate.

Usually takes under a minute

Where does your work go? Playground saves your site in this browser, on this laptop. It keeps your five most recent sites under Your Playgrounds and removes older ones automatically. A private window, clearing your browsing data, or switching to another browser or laptop loses it. So prepare in a normal window on the laptop you're bringing. Want to keep a site for sure? Use Store permanently, or download it as a ZIP. And if it's gone on the day: no problem, just open the workshop link again.

Option B: LocalWP (installed on your laptop)

LocalWP is a free program that runs WordPress on your own laptop. Choose it if you want to keep your work, want to try the Maintenance Mode idea (it doesn't work reliably in Playground), or already use it. It needs macOS 12 or newer, Windows 10 (64-bit) or 11, or a Debian-based Linux such as Ubuntu, and at least 4 GB of RAM.

  1. Download LocalWP from localwp.com
  2. Install the program
  3. Click "Create a new site"
  4. Choose a name (e.g. "workshop") and click through with the default settings
  5. Wait for the site to be created. On Windows, Windows Defender asks for permission a few times the first time: click Allow access each time.
  6. Click "WP Admin" to verify your WordPress dashboard opens
  7. Install Plugin Check: in WP Admin go to Plugins → Add Plugin, search for "Plugin Check", click Install Now, then Activate. You'll need it after the break.

Takes about 10 minutes (including download)

Best done at home. No time? There are USB sticks with the LocalWP installer at the workshop. Or use Playground: nothing to install. That's completely fine.

Step 2: Sign in to an AI tool (and pick a backup)

Any AI chatbot that can write code will do. Two things matter more than which one you pick:

ToolMade byAccountFree plan
VibeMistral, France. Called Le Chat until May 2026.Free Mistral accountYes, limits not published. Your chats are used to train Mistral's models unless you switch that off.
LumoProton, SwitzerlandOptional. Without one your chats aren't saved; a free Proton account keeps them for 7 days.Yes, limited. Proton says it never trains on your chats. Not tested with this workshop yet.
LoesHostYourAI, Groningen, Netherlands. Dutch-language, runs on servers in the EU.Free Loes account (email, Google or Apple)Yes, with a chat limit every few hours. HostYourAI says chats stay in the EU and are never used to train models. Not tested with this workshop yet.
ChatGPTOpenAI, USFree OpenAI account. Using it without one isn't available in the EU.Yes, limits not published
ClaudeAnthropic, USFree Anthropic account (email or Google)Yes. The usage limit resets every five hours.
CopilotMicrosoft, USOptional. Signing in with a Microsoft account gives you chat history and longer conversations.Yes, limits not published
Duck.aiDuckDuckGo, US. Lets you choose between several models.Not needed. Your recent chats are kept in your own browser only.Yes, with a daily limit that isn't published. DuckDuckGo says chats are anonymised and not used to train models. Not tested with this workshop yet.
GeminiGoogle, USGoogle accountYes, limits not published
ConferPrivacy-first, started by Signal co-founder Moxie MarlinspikePasskey. On Windows or Linux you may need a password manager for that.20 messages a day. Too few as your only tool for this workshop; fine as a backup.
Use demo content only. Don't paste client code, passwords or real customer data into any AI tool. Some free plans use your chats to train their models: Mistral does by default, and ChatGPT has a setting called "Improve the model for everyone" that you can switch off.

Test it: does it give you code?

Paste this into the chat (English is fine, whatever language you usually use):

Write only the plugin header for a WordPress plugin called "WCNL Test". Reply with just the code, nothing else.
Expected: a short block of code with Plugin Name: WCNL Test in it, usually starting with <?php. Got an explanation around it? Fine, as long as the code is there. Got an error, a refusal or a "limit reached" message? Try your backup tool.
Later: skip the copy-pasting. Coding tools such as Claude Code work directly on the files on your computer, so you don't copy code back and forth. You don't need one for this workshop, and Claude Code isn't part of Claude's free plan. Read about it on modub.nl (in Dutch).

Step 3: Code editor (optional)

If you're using LocalWP, it helps to have a code editor. If you're using WordPress Playground, skip this step.

Step 4: Test that it worked (5 minutes)

This is exactly what you'll do with your own plugin in the workshop. If it works now, the hardest part of the setup is behind you. It works the same in Playground and LocalWP.

  1. Download the starter plugin: my-first-plugin.zip. Using Safari? It may unzip the file by itself. If you end up with a folder instead of a .zip, right-click the link and choose Download Linked File As, or use another browser.
  2. In WP Admin go to Plugins → Add Plugin and click Upload Plugin at the top. Choose the .zip, click Install Now, then Activate Plugin.
  3. Open the post Hello world! on your site: click your site name at the top left of WP Admin, choose Visit Site, then click the title "Hello world!".
Expected: a grey box saying "🎉 This plugin works! Replace this code with your own creation." above the post text. It only shows on a single post, not on the homepage or the blog overview.
Not seeing it? Check on the Plugins screen that "My First Plugin" is activated. Make sure you're looking at the post itself (its own page, with only that post on it), not the homepage. Can't select the file, or get an error when uploading? Make sure you upload the .zip file itself, not a folder. Still stuck? Leave it and come anyway: ask the workshop leader or teaching assistant.

Step 5: Know the basics (optional reading)

You don't need to know how to code, but it helps to understand this:

What is a WordPress plugin?

A plugin is a piece of extra functionality you add to WordPress. Technically, it's a folder with at least one PHP file in it, located in wp-content/plugins/.

What does a minimal plugin look like?

<?php
/**
 * Plugin Name: My Plugin
 * Description: This is a description.
 * Version: 1.0.0
 */

// Here goes the code that does something

That's it. Those first lines (the "plugin header") tell WordPress this is a plugin. The rest is your code, or in our case: the code that AI writes for you.

How do you install a self-made plugin?

With LocalWP:

  1. Open your site's folder → app/public/wp-content/plugins/
  2. Create a new folder (e.g. my-plugin)
  3. Put your PHP file in it
  4. Go to WP Admin → Plugins → Activate

With WordPress Playground:

  1. Copy the code from your AI chat
  2. Go to Tools → Plugin File Editor (with a classic theme it's under Plugins instead). In the dropdown at the top right, pick Hello Dolly. Not in the list? Some setups remove it; use My First Plugin from step 4 instead, but deactivate it on the Plugins screen first (WordPress may refuse to save changes to an active plugin). Replace all the code with yours and click Update File. Or save your code as a .zip and upload it as in step 4. The Guide walks you through both.

Prompt template

This is the template we'll use during the workshop. Feel free to look at it now:

Create a WordPress plugin with the following specifications:

Name: [name of your plugin]
Function: [describe in 1-2 sentences what the plugin should do]
Where visible: [on the frontend / in the admin / both]
Behavior: [describe specifically what should happen]

Technical requirements:
- Follow WordPress best practices (hooks, filters, sanitization)
- Include a plugin header with name, description and version
- Prevent direct file access
- Put all code in a single PHP file
- Add short comments explaining what each part does
Tip: The more specific your prompt, the better the result. "Make a plugin that does something with images" yields less than "Make a plugin that automatically adds alt text to images that don't have any yet."

Starter plugin

This is the starter plugin from step 4. It shows a message above every single post, and it's a tidy example of what a minimal plugin looks like: open the .php file inside the zip to read it.

Download starter plugin (.zip)

Ready to build?

All set? Pick an idea on the ideas page and start writing your prompt. Something not working? Raise your hand: the workshop leader or teaching assistant will help you.