Skip to content

Outdated docblock references old hook registration flow #610

@AyanJinabade

Description

@AyanJinabade

Description

While reviewing the current codebase, I noticed that a docblock comment still references an older hook registration pattern using Plugin_Name_Loader::run().

However, in the current implementation, hooks are registered via:

  • Plugin_Name::define_admin_hooks()
  • Plugin_Name::define_public_hooks()

This makes the existing documentation misleading for developers using the Boilerplate as a reference.

Why this matters

The WordPress Plugin Boilerplate is widely used as a learning and production foundation. Accurate inline documentation is important to help developers understand the current architecture and hook lifecycle correctly.

Suggested resolution

Update the affected docblock to reflect the current hook registration flow without changing any functional behavior.

I’m happy to submit a small PR to update the documentation if this change is acceptable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions