Template:MediaIncluHook: Difference between revisions

From Bonkipedia
[[mw:]]>Shirayuki
(update SVN links)
 
m (1 revision imported: Template documentation pages)
 
(No difference)

Latest revision as of 18:03, 12 November 2022

Template documentation

Copy and paste template

MyHook
Available from version ???


Define function:
public static function onMyHook( $x, $y ) { ... }

Attach hook:
$wgHooks['MyHook'][] = 'MyExtensionHooks::onMyHook';
Called from:

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:MyHook extensions.

{{MediaIncluHook
|name = MyHook
|version =
|gerrit =
|removed =
|summary =
|args = $x, $y
|source =
|sourcefunction =
|sourceclass =
|newvarname =
|newvarlink =
}}