Generate a WordPress plugin header (plugin file comment block). Fill the fields, then click “Generate header” to copy the result.
Creating a WordPress plugin starts with a correct plugin header. This tool generates a clean, standards-friendly WordPress plugin header block using common fields and optional requirements, so you can copy, paste, and move on faster.
What Is a WordPress Plugin Header?
The plugin header is the comment block at the top of your main plugin file. WordPress reads this block to display your plugin’s name, version, author, text domain, and other metadata inside the admin plugins screen.
A proper header helps ensure:
- WordPress detects your plugin correctly
- Your metadata is consistent across environments
- Your plugin is ready for distribution (including WordPress.org)
What This Plugin Header Generator Does
This generator creates a ready-to-use plugin header that includes:
- Plugin Name
- Description
- Version
- Requires at least (WordPress)
- Requires PHP
- Tested up to
- Author / Author URI
- Plugin URI
- License / License URI
- Text Domain / Domain Path
Optional features
Depending on your UI options, it can also generate:
- A “Requires Plugins” header line (for example, WooCommerce)
- Additional required plugins as a comma-separated list
If WooCommerce is selected, the generator automatically adds:
Requires Plugins: woocommerce
How to Use the Plugin Header Generator
- Fill in your plugin information (name, version, description, etc.).
- Choose optional requirements (WooCommerce and/or required plugins).
- Click Generate.
- Copy the header and paste it into the top of your main plugin file (for example:
my-plugin.php).
The output is displayed in a readable code editor (CodeMirror) and can be copied with one click.
Best Practices (Quick Notes)
- Keep the Description short and clear.
- Make sure Text Domain matches your translation loading logic.
- Use a real License value compatible with WordPress.org (commonly GPLv2 or later).
- If your plugin truly depends on another plugin, declare it in Requires Plugins.
Important Note
This tool generates the header block only. It does not create plugin files automatically — it gives you clean metadata that you can use in your plugin scaffold.
