Manual:Hooks/GetLogTypesOnUser

GetLogTypesOnUser
Available from version 1.23.0
Add log types where the target is a userpage
Define function:
public static function onGetLogTypesOnUser( &$types ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"GetLogTypesOnUser": "MyExtensionHooks::onGetLogTypesOnUser"
	}
}
Called from:File(s): specials/SpecialLog.php
Interface:GetLogTypesOnUserHook.php

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

DetailsEdit

  • &$types: Array of log types