O'Reilly logo

MediaWiki Administrators' Tutorial Guide by Mizanur Rahman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

MediaWiki Hooks

In MediaWiki, we can attach functionality to events. This is known as hooking. The sole purpose of doing this is to execute our own functionality after selected events. MediaWiki provides several hooks to extend the MediaWiki functionality. For example, if you want to set up a new type of user login procedure in your system, then you might be interested in hooking your own implementation with MediaWiki's existing code. In MediaWiki, a hook is defined as:

A hook is a clump of code and data that should run when an event happens. This can be either a function and a chunk of data, or an object and a method.

MediaWiki hooks allow hackers, third-party developers, and site administrators to define new functionality that will run at a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required