Manual:Hooks/GetIP

From MediaWiki.org
Jump to: navigation, search
GetIP
Available from version 1.17.0
Modify the ip of the current user (called only once).

Define function:
public static function onGetIP( &$ip ) { ... }

Attach hook:
$wgHooks['GetIP'][] = 'MyExtensionHooks::onGetIP';
Called from: ProxyTools.php

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


Details[edit]

  • &$ip: string holding the ip as determined so far