# Your WordPress plugin, active.

> How do you build a WordPress plugin, and what does it cost to have it built?

Canonical: https://erdibuilds.app/build/how-to-build-wordpress-plugin
Last updated: 2026-11-26 (November 26, 2026)

A plugin that does one thing well on any theme is a strong first version. The hours and amounts on this page come from Find My Stack, a free planning tool. Find My Stack has no page for a WordPress plugin, so ErdiBuilds picked the parts from its calculator. A quote from a developer replaces them.

## Build it yourself

These steps work whether you build it yourself or check what a developer does.

1. Set up a local WordPress: A local site with debugging on, and the PHP version most of your users run.
2. Create the plugin file: A folder with one PHP file and a header comment with name, version and license. WordPress lists it under Plugins.
3. Use hooks, not edits: Actions and filters (Hooks where a plugin adds code or changes data without editing WordPress itself.) let the plugin run at the right moment. Never change core files.
4. Add a settings page: The Settings API stores options and builds the form. Prefix every name, so your plugin does not clash with others.
5. Make it safe: Check permissions, use nonces on forms, sanitize what comes in and escape what goes out. Most plugin security holes come from skipping one of these.
6. Make it translatable: Wrap every text in translation functions with your text domain, so it can be translated.
7. Publish in the plugin directory: Submit to WordPress.org with a readme. The plugin has to be GPL compatible and passes a review before it is listed.

## The hard part

### Themes and other plugins

Your plugin runs next to thousands of themes and plugins. Load scripts only on your own pages and give every function and option your own prefix.

### Security holes

Plugins are a common way into WordPress sites. A forgotten permission check or unescaped output is enough. Review every form and every output.

### Selling a premium version

The directory lists free plugins. A paid version is sold on your own site, with license keys and updates delivered from your server.

## Rather have it built?

An estimate from Find My Stack: one developer working with AI tools, at 45 per hour. Your real price comes with the proposals. 45 per hour is the example rate Find My Stack starts with. It is the same number in euros or US dollars. The region of the developer is not part of the estimate, and rates differ by country and experience.

Find My Stack has no page for a WordPress plugin. The stack below follows the result its quiz gives for a web app.

- PHP with the WordPress hooks and Settings API.
- JavaScript with the block editor packages if the plugin adds blocks.
- The WordPress REST API to talk to an outside service.
- A license and update service for a premium version.

**Estimate for one developer who works with AI tools**

|  | Hours | Cost at 45 per hour |
| --- | --- | --- |
| First version | 48 to 112 hours | €2,160 to €5,040 |
| Full version | 68 to 152 hours | €3,060 to €6,840 |

Find My Stack has no page for a WordPress plugin, so ErdiBuilds picked the parts from its calculator. The calculator has no option for plugins, so its browser platform is the closest base. First version: a settings page, the connection to one service and translations. Full version: plus sales of a premium version and emails. Not counted: blocks for the editor, multisite support and directory review rounds. The calculator has no entry for them, so a full version with them costs more.

## Example milestones

1. Example: Plugin base and settings, 32 to 72 hours, €1,440 to €3,240. The plugin installs, its settings page saves options.
2. Example: The connection, 8 to 24 hours, €360 to €1,080. The plugin talks to the outside service.
3. Example: Translations, 8 to 16 hours, €360 to €720. Every text ready for translation.

Build these for clients? [Join as a developer](https://erdibuilds.app/signup?role=developer).

WordPress is a trademark of its owner. ErdiBuilds is not affiliated with WordPress.

## Good to know

### How long does it take to build a WordPress plugin?

48 to 112 hours of work for the first version. Your developer gives you the real timeline in the proposal.

### Do I need PHP?

Yes, WordPress runs on PHP. JavaScript comes in for blocks and interactive settings.

### Plugin directory or my own site?

The directory brings people who search for a free plugin. A premium version is sold on your own site, often next to a free one in the directory.

### What happens when WordPress updates?

Test the plugin with each major release and update the tested version in the readme. Plugins that are not updated get a warning in the directory.

## Related

- [Build a website with an independent developer](https://erdibuilds.app/build/website): Plan a business website: editor or custom code, typical tools, a milestone plan, what the brief needs and how to choose a developer.
- [How to build a Shopify app](https://erdibuilds.app/build/how-to-build-shopify-app): Build a Shopify app step by step: the CLI, the Admin API, webhooks, billing and App Store review. Or have it built, with a Find My Stack estimate.
- [How to build a Chrome extension](https://erdibuilds.app/build/how-to-build-chrome-extension): Build a Chrome extension step by step: Manifest V3, permissions, store review and the stack. Or have it built, with a Find My Stack estimate.
- [Hire a React developer for your web app](https://erdibuilds.app/hire/react): Learn what React is used for, what to ask a React developer, what a project plan looks like and how developers are matched on ErdiBuilds.
- [How much does it cost to build an app?](https://erdibuilds.app/guides/how-much-does-it-cost-to-build-an-app): What drives the cost of an app, SaaS, website or game, and how to turn a rough idea into a real quote you can compare and trust.
