Skip to content
Merlin Tools

Plugin header generator

The block WordPress reads to recognise the plugin.

Genuinely free. No sign-up, no email, no limits, no cookies. We don't store the URL you analyse.

Code
<?php
/**
 * Plugin Name: My Plugin
 * Description: Adds a feature.
 * Version:     1.0.0
 * Author:      Jane Doe
 * License:     GPL-2.0-or-later
 * Text Domain: mio-plugin
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

What it's for

WordPress recognises a plugin by the comment block at the top of its main file. If a field is missing or malformed, the plugin doesn't show up. Here you get the correct header, with the text domain for translations.

← All WordPress tools

Frequently asked questions

What should the file be called?

The main file can have any name (usually the plugin's) and goes inside a folder in wp-content/plugins/. It's the header, not the filename, that makes the plugin recognised.