Skip to content
wp-skills
Register
tools/wordpress-plugin-header-generator

WordPress Plugin Header Generator

WordPress Plugin Header Generator is a tool that automatically generates the header information required for WordPress plugins.

The one header that is not optional. WordPress scans only the top level of a plugin folder for it, so this block belongs in the main file and nowhere else.

The plugin's own page, not the author's. It also has to be unique — WordPress.org rejects a URI already claimed by another plugin.

Yours. Bumping it is what tells WordPress an update exists.

One or two sentences, shown on the Plugins screen.

Shown in the details panel.

Linked from the author's name. Needs the scheme.

Anything distributed on WordPress.org has to be GPL-compatible.

The licence's full text. Reviewers check this resolves.

Has to match the plugin's folder name for WordPress.org translations to load — this is the one place the convention is a requirement rather than a habit.

Where your .mo files live, relative to the folder. Only needed when they are not in the root.

Older installs are told they cannot run this rather than being allowed to fail halfway.

Checked before any of your code is loaded, so a host on an older PHP gets a notice instead of a fatal.

Comma-separated WordPress.org slugs, added in WordPress 6.5. The plugin cannot be activated until they are.

WordPress 5.8. Set this when the plugin is not on WordPress.org, so an unrelated plugin with the same slug there cannot overwrite it.

Multisite only: the plugin can be network-activated and cannot be enabled per site.

my-plugin.php
/*
*/