WordPress Plugin Header Generator Every field, checked.
Generate your plugin header
Slug and folder: gallery-boost
Default: gallery-boost
Slugs, e.g. woocommerce
<?php
/**
* Plugin Name: Gallery Boost
* Description: Add product videos to the WooCommerce product gallery.
* Version: 1.0.0
* Requires at least: 6.2
* Requires PHP: 7.4
* Author: Your Name
* Author URI: https://example.com
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: gallery-boost
* Domain Path: /languages
* Requires Plugins: woocommerce
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
Ready for WordPress.org
- Needs WordPress 6.5 or newer. Users must activate these plugins first.
What each header field does
WordPress parses these lines with get_plugin_data(). Order does not matter, the exact spelling of each label does.
Plugin Name (required)
Shown on the Plugins screen. On first submission to WordPress.org it also becomes your permanent slug.
Description
One sentence under the name on the Plugins screen. WordPress.org rejects uploads without it.
Version
Numbers and dots only. Bump it with every release; WordPress compares it to offer updates.
Requires at least / Requires PHP
WordPress stops installs on sites that are too old, so they never see a fatal error from your code.
Author / Author URI / Plugin URI
Credit and links on the Plugins screen. Plugin URI and Author URI must be different, or the upload fails.
License / License URI
GPLv2 or later compatible for WordPress.org. Use the same license in readme.txt.
Text Domain / Domain Path
For translations. The text domain must equal the slug on WordPress.org. Domain Path points to your .mo files.
Requires Plugins
Dependencies by slug (WordPress 6.5+). Users must activate them first.
Update URI / Network
Update URI is for plugins updated from your own server. Network: true allows network activation only on multisite.
Keep the header and readme.txt in sync
In the PHP header
Plugin Name, Version, Requires at least, Requires PHP, Text Domain, Requires Plugins, Update URI. WordPress itself reads these.
In readme.txt
Stable tag, Tested up to, Tags, Contributors and the description. WordPress.org reads these for your plugin page. Requires at least and Requires PHP can appear in both; keep them the same.
Want it built and published for you?
We build WordPress plugins, get them through the WordPress.org review and keep them updated. Our own plugins there have 4,000+ active installs.
Talk about your pluginWhat would your plugin cost to build?
Pick the type, size and features and get a price range, a timeline and the yearly support cost in about a minute.
Estimate my pluginFAQ
More free tools
WordPress Readme Generator & Validator
Write or check your plugin readme.txt with a live preview and an SEO score based on how WordPress.org search ranks plugins.
Open toolWordPress Plugin Search Rank Checker
See where your plugin ranks in WordPress.org search for any keyword, and why the top 10 rank above you.
Open toolWordPress Plugin Stats & Comparison
Downloads chart, active installs, ratings and support for any WordPress.org plugin, with a side by side comparison.
Open toolWordPress Plugin Boilerplate Generator
Pick the parts you need and download a modern plugin starter that follows the WordPress Coding Standards.
Open toolWordPress Plugin Name Checker
Check a plugin name against the WordPress.org rules and see whether its slug is still free.
Open toolWordPress Plugin Banner & Icon Generator
Turn one image (or your plugin name) into the four banner and icon files WordPress.org needs, named right.
Open tool