Extensions are a part of the Hooks API that extend the available settings for a Reaction. Extensions can do things like prevent a Reaction from from actually responding to a particular fire of an Event, and listen for when an event fire is a “hit,” or when it is a “miss.” Extensions are different than Reactors, in that extensions do not actually take action to respond to an event, they only dictate and/or detect whether the Reactor fires.

Extensions extend the WordPoints_Hook_Extension class, and are registered with the hook extensions class registry:

Extensions can also implement several different interfaces, in order to listen for whether a fire hit or missed:

  • WordPoints_Hook_Extension_Hit_ListenerI
  • WordPoints_Hook_Extension_Miss_ListenerI