< Manual:Hooks
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: | In extension.json:
{
"Hooks": {
"GetIP": "MyExtensionHooks::onGetIP"
}
}
|
Called from: | File(s): WebRequest.php |
Interface: | GetIPHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:GetIP extensions.
Details
- &$ip: string holding the ip as determined so far
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.