Manual:$wgHooks/zh

细节
Global list of hooks. It is an array of arrays: it specifies for every event an array of functions to be called.

通过以下操作来添加一个“钩子”：

或

或

或

In the last case, the callback is expected to be a method in $object of the same name as the event preceded by "on", e.g. "onUnknownAction"