Open main menu


< Manual:Hooks
Available from version 1.17.0

Define function:
public static function onSpecialNewpagesConditions( &$special, $opts, &$conds ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"SpecialNewpagesConditions": "MyExtensionHooks::onSpecialNewpagesConditions"

For MediaWiki ≤1.25:

$wgHooks['SpecialNewpagesConditions'][] = 'MyExtensionHooks::onSpecialNewpagesConditions';
Called from:File(s): SpecialNewpages.php

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


  • &$special: NewPagesPager object (subclass of ReverseChronologicalPager)
  • $opts: FormOptions object containing special page options
  • &$conds: array of WHERE conditionals for query