Skip to content

feat: AbstractHook::all() and the pollora/async/dispatched action - #18

Merged
ogorzalka merged 3 commits into
mainfrom
feat/list-all-registrations
Oct 9, 2026
Merged

ogorzalka merged 3 commits into
mainfrom
feat/list-all-registrations

Conversation

@ogorzalka

@ogorzalka ogorzalka commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Two read-only additions for debugging tools (pollora/debugbar), to ship as v1.5.0:

  • AbstractHook::all() returns every registration made through the instance, keyed by hook name (hook, resolved callback, priority, args, async handler). $wp_filter holds the same callbacks but no longer says who registered them. Not added to HookInterface, so implementers outside this package are not broken.
  • pollora/async/dispatched action, fired after a driver accepted a handler, with the AsyncPayload and the delay in seconds. Not fired when a condition, a running lock or a unique lock keeps the handler from being queued, nor when queuing fails and the handler runs in place.

README and CHANGELOG updated. Unit suite 259 passed, PHPStan and Pint clean.

@ogorzalka ogorzalka changed the title feat: AbstractHook::all() lists every registration feat: AbstractHook::all() and the pollora/async/dispatched action Oct 8, 2026
@ogorzalka
ogorzalka merged commit d22b619 into main Oct 9, 2026
5 checks passed
@ogorzalka
ogorzalka deleted the feat/list-all-registrations branch October 9, 2026 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant