Skip to content
Corex

HookRegistry

Corex\Hooks\HookRegistry · class · Core layer

Wires a subscriber’s declared hooks to WordPress. The subscriber is resolved from the container so its dependencies inject (FR-016); each hook→method pair is registered at most once (FR-017). add_filter registers actions too — in WordPress add_action is an alias of add_filter.

__construct(ContainerInterface $container)

Section titled “__construct(ContainerInterface $container)”