Skip to content
Plugin details → Installable plugin ZIPWordPress tools

WordPress Plugin Boilerplate Generator

Generate a WordPress plugin boilerplate with your name, prefix and requirements, plus an optional admin page, saved settings, a widget and documented hooks. Download a ready-to-install ZIP.

About this tool

About WordPress Plugin Boilerplate Generator

WordPress Plugin Boilerplate Generator creates the starting files for a new plugin with your details already in place. Enter the plugin name, description, author, URLs, version, text domain, a constant prefix and the minimum WordPress and PHP versions, and the tool writes the main plugin file with a valid header, a singleton plugin class, activation and deactivation hooks, text-domain loading, and front-end CSS and JavaScript loaded the WordPress way. A readme.txt in the WordPress.org format and a helper functions file are always included. Optional parts are added only when you tick them: an admin menu page with tabs, a settings form built on the Settings API with sanitised saving, an example widget, and documented extension hooks that other developers can use. Every function, option and hook name uses a prefix made from your plugin slug, and the widget class is named after your plugin, so two generated plugins can run side by side. The ZIP is built in your browser and installs through Plugins → Add New → Upload Plugin.

WordPress Plugin Boilerplate Generator tool

Who needs a plugin boilerplate

Start with structure instead of a blank file

Site-specific functionality

Move custom code out of functions.php into a plugin so it survives theme changes.

ExampleGenerate “Acme Site Tweaks” and paste existing snippets into includes/functions.php.

Client feature plugins

Deliver a feature with its own settings screen that clients can manage.

ExampleEnable the admin page and settings to give the client an on/off switch under their own menu item.

Learning plugin development

See how hooks, the Settings API and widgets fit together in working code.

ExampleInstall the generated plugin locally and follow how the settings form saves through options.php.

Plugins for WordPress.org

Start with the header fields and readme.txt structure the plugin directory expects.

ExampleFill in Requires at least and Requires PHP, then complete the generated readme.txt before submitting.

Moving code out of a theme

Keep shortcodes and custom functions working when the theme changes.

ExampleCustom shortcodes are moved from functions.php into a generated plugin before a redesign.

Agency starter plugins

Start every client add-on from the same clean, prefixed structure.

ExampleEach client feature plugin uses the agency as author and a client-specific prefix to avoid clashes.

Tips for a solid plugin

Good habits from the first file

Check capabilities and nonces

Protect every form and AJAX action with current_user_can() and a nonce. The functions reference has copy-ready examples.

Open WordPress Functions Reference

Clean up on uninstall

Add an uninstall.php that deletes the plugin’s options when it is removed, so it does not leave data behind.

Keep the version in sync

Update the Version header, the version constant and the readme.txt Stable tag together when you release.

Need a content type?

Generate register_post_type() code with the CPT builder and add it to your plugin.

Open the CPT Generator

Escape everything you output

Use esc_html, esc_attr and esc_url when printing data, as the generated admin page does, to prevent XSS.

Use the hooks for extensions

Fire your own actions and filters, like the generated _init and _loaded hooks, so other developers can extend your plugin.

Built & tested by

HemantInsights

Senior Software Engineer · Developer of Toolyconvert

Hemant developed WordPress Plugin Boilerplate Generator and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.

Last updated 30 September 2026

Answers and guidanceFrequently Asked Questions
How do I install the generated plugin?
Go to Plugins → Add New → Upload Plugin in WordPress, choose the ZIP, click Install Now and then Activate.
What does the plugin do after activation?
It is a working skeleton: it loads its CSS and JavaScript, registers any features you enabled, such as the settings page and widget, and is ready for your own code.
What is the constant prefix for?
It names the plugin’s PHP constants, such as MyPlugin_PLUGIN_URL. A unique prefix prevents clashes with other plugins that define similar constants.
Does the settings page actually save?
Yes. When Settings is enabled, the admin page shows a Settings API form with an “Enable features” option that is saved and sanitised by WordPress.
Which files are included?
Always: the main plugin file, readme.txt, includes/functions.php, front-end CSS and JS, admin CSS and a languages folder. Depending on your options: includes/admin-page.php, includes/hooks.php and an example widget.
Which WordPress and PHP versions does it need?
You choose them in the form. They are written into the Requires at least and Requires PHP headers, and WordPress will refuse to activate the plugin on older versions.
Is my information uploaded?
No. The files are generated and zipped in your browser.
What is a WordPress plugin boilerplate?
A ready-made set of files with the standard structure of a plugin: a header, a main class, hooks, assets and a readme. You add your own features on top.
Where do I add my own code?
Add helper functions to includes/functions.php and hook new features into the main class’s init method. Admin screens go in includes/admin-page.php.
Is it translation-ready?
Yes. Text uses WordPress translation functions with your text domain, and the plugin loads translations from its languages folder.
Can I submit it to WordPress.org?
Yes, once you have built real functionality. The header fields and readme.txt follow the directory’s format; complete the readme and follow the plugin guidelines.
What happens on activation and deactivation?
The plugin registers activation and deactivation methods in its main class. Add your own setup and clean-up logic there.
More tools for your workflowRelated Tools

Featured on

Toolyconvert is listed on these product directories and launch platforms.