You can build a WordPress plugin with AI when one you rely on breaks, is abandoned or does far more than you need. An AI coding tool such as Claude Code can help you write a small plugin of your own that does exactly your job, and the same goes for a child theme that changes a few things about your site's look. This guide takes you from a written brief to a plugin running on your live site: build it on your computer, test it on a staging copy, deploy it through Git on sPremium or as an upload on any plan, and keep it maintained afterwards.
Before you start
Last reviewed: 19 October 2026, against WordPress 7.1, the current Claude Code release and WP Toolkit on Noiz hosting.
Build your own when the job is small and clearly yours; keep a maintained plugin when the job touches payments, security, user accounts or a law you must comply with. A plugin you build is a plugin you maintain.
The quality of the plugin depends on the brief. Write down what it must do, what it must never do, and how you will know it works. For example:
Write a WordPress plugin called "Example Delivery Days" for a WooCommerce
shop. On the checkout page, show a required field "Preferred delivery day"
with the options Tuesday and Thursday. Save the choice on the order and
show it on the admin order screen and in the order emails.
Rules: one plugin folder, main file example-delivery-days.php with a proper
plugin header including Requires at least and Requires PHP. No external
services, no tracking, no database tables of its own. Sanitise every input,
escape every output, check capabilities for anything in the admin, and use
nonces for any form you add. Follow the WordPress coding standards. Add a
readme with what it does and how to remove it. Do not edit WooCommerce or
any other plugin's files.
Done when: a test order on staging shows the chosen day in the admin and in
the customer email, and the plugin deactivates cleanly.
For a child theme, the brief names the parent theme and lists the changes: "Create a child theme of the active theme that changes the header background to our brand colour and hides the author line on posts. No edits to the parent theme."
git init.Ask the tool to explain any part you do not understand. If you cannot follow the code at all, ask for a simpler version, or ask someone who can read it to review it before it goes live.
Never test a new plugin on the live site first. A fatal error in a plugin can take the whole site down until the plugin is removed.
wp-content/plugins folder, by SFTP, with the File Manager in Plesk or with Git (Step 4), or zip it and use Plugins > Add New Plugin > Upload Plugin on the staging site.Deploy through Git on sPremium, or as an upload on any plan.
| Method | Plans | How a release works |
|---|---|---|
| Git deployment | sPremium | Push to your repository, then deploy in Plesk. To roll back, deploy the previous commit |
| Upload | Any plan | Zip the plugin folder and install it with Upload Plugin |
httpdocs/wp-content/plugins/example-delivery-days (your plugin's folder name in place of the example).On sPremium you can also deploy to staging first with the same steps, and copy only the plugin's files to the live site with WP Toolkit's Copy Data (Files Only).
Keep the brief, the repository and the update notes, and remove what you stop using.
| Symptom | Cause and fix |
|---|---|
| The site shows a critical error after activation | Rename the plugin's folder in the File Manager in Plesk or over SFTP to switch it off, then read the error log in Logs under the domain and give the error to the tool. |
| The Upload Plugin page says the package could not be installed | The zip contains the files without their folder, or the folder name does not match the main file. Zip the folder itself. |
| Git deployment fails | The deploy key is missing on your Git host, or the path is wrong. See How to fix Plesk Git errors when the repository folder is missing. |
| The plugin worked on staging but not live | Compare the PHP versions, active plugins and WooCommerce versions of the two sites; WP Toolkit shows them on each card. |
Read next:
sPremium is where this workflow works best: Git deployment, WP Toolkit staging and copy, your choice of PHP version and a dedicated PHP pool. Compare the plans. Once your plugin is live, WordPress Care keeps WordPress, its plugins and themes updated, with a restore point before each change; building and changing your own code stays with you or your developer.