Available from version 1.13.0
When a history pager query parameter set is constructed.
Define function:
public static function onPageHistoryPager_getQueryInfo( &$pager, &$queryInfo ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"PageHistoryPager::getQueryInfo": "MyExtensionHooks::onPageHistoryPagergetQueryInfo"

For MediaWiki ≤1.25:

$wgHooks['PageHistoryPager::getQueryInfo'][] = 'MyExtensionHooks::onPageHistoryPagergetQueryInfo';
Called from:File(s): actions/HistoryAction.php

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


  • &$pager: the pager, instance of class HistoryPager defined in HistoryPage.php
  • &$queryInfo: the query parameters