Free tool

WordPress Plugin Header Generator Every field, checked.

Fill in the details and copy a correct header for your main plugin file. Each field is checked against the rules the WordPress.org upload and Plugin Check use, so a typo does not cost you a review round.

Generate your plugin header

Where will the plugin live?

Slug and folder: gallery-boost

54/150

Default: gallery-boost

Slugs, e.g. woocommerce

gallery-boost/gallery-boost.php
<?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.

Plugin development

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 plugin
Free calculator

What 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 plugin

FAQ