superpowers-sage:wp-hooks-lifecycle

Official

Master the WordPress hooks lifecycle in Sage.

Authorcodigodoleo
Version1.0.0
Installs0

System Documentation

What problem does it solve?

In Sage/Acorn WordPress projects, developers often struggle to understand, organize, and debug the WordPress hooks lifecycle—knowing when to use actions vs filters, the execution order, and where to register hooks in a scalable provider-based architecture.

Core Features & Use Cases

  • Clear guidance on actions vs filters, their differences, and how to pair them with service providers.
  • Step-by-step mapping of the WordPress boot sequence to hook registrations, ensuring hooks fire at the correct stage.
  • Best-practice patterns for placing hook registrations in the ServiceProvider boot() method and using dependency injection inside callbacks.
  • Practical troubleshooting guidance for common hook timing issues, priorities, and argument counts.

Quick Start

Boot the Sage app and register common WordPress hooks in AppServiceProvider to observe the execution order.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: superpowers-sage:wp-hooks-lifecycle
Download link: https://github.com/codigodoleo/superpowers-sage/archive/main.zip#superpowers-sage-wp-hooks-lifecycle

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.