Function addHook

  • Parameters

    Returns RegisteredHooks

    Description

    Register a callback function (a "hook") that will be called for a given hook name. Hook names are called at specific points during execution and allow some form of extensibility.

    Deprecated

    use hooks.on() instead