Jump to navigation Jump to search
Available from version 1.24.0 (Gerrit change 169540)
Add log relations to the current log
Define function:
public static function onSpecialLogAddLogSearchRelations( string $type, WebRequest $request, array &$queryConds ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"SpecialLogAddLogSearchRelations": "MyExtensionHooks::onSpecialLogAddLogSearchRelations"

For MediaWiki ≤1.25:

$wgHooks['SpecialLogAddLogSearchRelations'][] = 'MyExtensionHooks::onSpecialLogAddLogSearchRelations';
Called from:File(s): specials/SpecialLog.php
Function(s): execute

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


  • $type: String of the log type
  • $request: WebRequest object for getting the value provided by the current user
  • &$queryConds: Array for query conditions to add