wp-hooks

Scan PHP sources for do_action() and apply_filters() calls and generate a structured hooks reference.

1|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/iwritec0de/wp-dev --skill wp-hooks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wp-hooks
Source: https://github.com/iwritec0de/wp-dev/tree/main/skills/wp-hooks
Command: npx skills add https://github.com/iwritec0de/wp-dev --skill wp-hooks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

WordPress projects often struggle to keep up with documenting and maintaining an up-to-date reference of custom hooks. This skill automates discovery by scanning PHP source for do_action() and apply_filters() calls and produces detailed, usage-contextual documentation.

Core Features & Use Cases

  • Scans PHP files for custom hook invocations and generates a structured hooks reference.
  • Documents parameters, examples, and lifecycle context for each hook.
  • Preserves manual descriptions from existing references and integrates them into the new docs.

Quick Start

Run the hook scanner against your PHP source to generate the initial hooks reference.

Frequently Asked Questions about wp-hooks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically generate documentation for custom WordPress hooks?

Automating WordPress hooks documentation involves scanning PHP source files to identify custom do_action() and apply_filters() calls. This extracts parameters, examples, and usage context to produce a structured, project-specific reference.

How does a hooks scanner handle existing manual descriptions in the documentation?

A hooks scanner preserves manual descriptions by reading existing references before generating new documentation. It integrates your previously written context into the updated output, ensuring no manual documentation is lost during the automated scanning process.

Can I document only custom WordPress hooks and exclude core hooks?

Yes, you can document only custom WordPress hooks by configuring the scanner to exclude core hooks. The tool specifically identifies custom do_action() and apply_filters() invocations across your codebase while filtering out native WordPress core calls.

What is the best way to maintain an up-to-date reference for do_action and apply_filters calls?

The best way to maintain an up-to-date reference for do_action and apply_filters calls is to automate discovery by regularly scanning PHP source files. This generates detailed, usage-contextual documentation reflecting current codebase changes.

Does a WordPress hooks reference generator work without external dependencies?

Yes, a WordPress hooks reference generator can operate without external dependencies. It scans PHP sources directly to extract custom hook invocations and outputs structured documentation autonomously within your development environment.