New advertisers: 50% off your first month with code FIRSTMONTHSee slots
wordpress avatar

Wp Plugin Development

A structured guide for WordPress plugin work covering architecture, lifecycle, settings, security, and data handling.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
6
skills.sh installs
9K
GitHub stars
2.4K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers plugin structure, hooks, activation and deactivation, uninstall behavior, admin UI, data storage, cron, and release packaging
  • Includes reference guides for structure, lifecycle, Settings API, security, data and cron, and debugging
  • Enforces nonces and capability checks, input sanitization with wp_unslash(), output escaping, and $wpdb->prepare() for SQL
  • Designed for developers targeting WordPress 7.0+ and PHP 7.4.0+, with WP-CLI used for some workflows

Install

$ npx -y skills add wordpress/agent-skills --skill wp-plugin-development -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

WP Plugin Development

When to use

Use this skill for plugin work such as:

  • creating or refactoring plugin structure (bootstrap, includes, namespaces/classes)
  • adding hooks/actions/filters
  • activation/deactivation/uninstall behavior and migrations
  • adding settings pages / options / admin UI (Settings API)
  • security fixes (nonces, capabilities, sanitization/escaping, SQL safety)
  • packaging a release (build artifacts, readme, assets)

Inputs required

  • Repo root + target plugin(s) (path to plugin main file if known).
  • Where this plugin runs: single site vs multisite; WP.com conventions if applicable.
  • Target WordPress + PHP versions (affects available APIs and placeholder support in $wpdb->prepare()).

Procedure

0) Triage and locate plugin entrypoints

  1. Run triage:
    • node skills/wp-project-triage/scripts/detect_wp_project.mjs
  2. Detect plugin headers (deterministic scan):
    • node skills/wp-plugin-development/scripts/detect_plugins.mjs

If this is a full site repo, pick the specific plugin under wp-content/plugins/ or mu-plugins/ before changing code.

1) Follow a predictable architecture

Guidelines:

Details

Repository
github.com/wordpress/agent-skills
Categories
PHP & Laravel, Technical Documentation, Security

More from wordpress/agent-skills

All 17

Similar to Wp Plugin Development

More PHP & Laravel