Skip to main content

Snippet headers

Each snippet starts with a docblock. The generator reads it to build the README, the sidebar and every snippet page, so the field names are load-bearing.

<?php
/**
* Plugin Name: Show Server IP in Admin
* Description: Shows the server IP address as a notice in the WordPress admin.
* Version: 1.0.0
* Type: mu-plugin
* Status: Complete
*/
FieldRequiredUsed for
Plugin NameYesThe page title, the sidebar label and the README index.
DescriptionYesThe page description and the README index. One sentence, no pipes.
VersionYesThe version column. Must start with a digit, for example 1.0.0.
TypeYesThe install location: plugin, theme, mu-plugin, snippet or script.
StatusYesThe status column and emoji.

Only the leading docblock is read. A version: or status: string further down the file, inside code or a comment, is ignored.

Type​

The README and the snippet pages use these values:

  • plugin - a standalone plugin.
  • theme - a theme, or a file that belongs in a theme.
  • mu-plugin - a must-use plugin.
  • snippet - pasted into a snippet manager, such as WP Codebox.
  • script - a plain PHP file you include yourself.

Status​

StatusEmojiMeaning
Complete✅Verified working.
WIP🚧Partly working, expect changes.
Broken❌Known broken, kept for reference.
Unknown❓Not verified, or the header is missing a status.

Status is matched case-insensitively, so complete and Complete produce the same emoji.