Vibe Code Your Own WordPress Plugin
Workshop preparation — get set up before we start
In this workshop you'll create your own WordPress plugin in 45 minutes using AI. No coding experience needed — but a little preparation makes all the difference.
Step 1: Set up WordPress
You need a working WordPress installation to test plugins on. Choose one of these options:
Option A: LocalWP
LocalWP is a free program that runs WordPress locally on your laptop. No server, no hosting, no costs.
- Download LocalWP from localwp.com
- Install the program
- Click "Create a new site"
- Choose a name (e.g. "workshop") and click through with the default settings
- Wait for the site to be created
- Click "WP Admin" to verify your WordPress dashboard opens
Takes about 10 minutes (including download)
Option B: WordPress Playground
No time or no desire to install anything? WordPress Playground runs entirely in your browser.
- Go to playground.wordpress.net
- Wait for WordPress to load (takes a few seconds)
- You now have a fully working WordPress installation in your browser
Takes about 30 seconds
Step 2: Set up an AI tool
You need an AI chatbot that can generate code. Pick one — any will do:
| Tool | Account needed? | Free? |
|---|---|---|
| Le Chat (Mistral, France) | Yes | Free tier available |
| HuggingChat (Hugging Face, France) | Yes | Free, open source |
| ChatGPT | Yes | Free tier available |
| Claude | Yes | Free tier available |
| Copilot | No (Microsoft account) | Free |
| Gemini | Yes (Google account) | Free |
| Confer (privacy-first, by Signal founder) | No | Free (20 msg/day) |
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.
- Visual Studio Code (free) — recommended
- Or use Notepad / TextEdit — that works too
Step 4: Know the basics
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:
- Open your site's folder →
app/public/wp-content/plugins/ - Create a new folder (e.g.
my-plugin) - Put your PHP file in it
- Go to WP Admin → Plugins → Activate
With WordPress Playground:
- Copy your code
- Go to WP Admin → Plugins → Plugin Editor (or create a zip and upload it)
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
Starter plugin
Download this minimal starter plugin as a reference. You can install it in WordPress to see how a plugin works:
Download starter plugin (.zip)
Checklist
- I have a working WordPress environment (LocalWP or Playground)
- I have an AI tool I can use
- I optionally have a code editor installed
- I roughly understand what a WordPress plugin is
- I've looked at the prompt template