Available from version 1.14.0
Customize entire Recent Changes line
Define function:
public static function onOldChangesListRecentChangesLine( &$changeslist, &$s, $rc, &$classes ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"OldChangesListRecentChangesLine": "MyExtensionHooks::onOldChangesListRecentChangesLine"

For MediaWiki ≤1.25:

$wgHooks['OldChangesListRecentChangesLine'][] = 'MyExtensionHooks::onOldChangesListRecentChangesLine';
Called from:File(s): changes/ChangesList.php

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


  • &$changeslist: The OldChangesList instance
  • &$s: HTML of the form "<li>...</li>" containing one RC entry
  • $rc: The RecentChange object
  • &$classes: array of css classes to include in the <li> element