Available from version 1.32.0 (Gerrit change 412487)
Allows adding deprecated variables. If a filter uses an old variable, the parser will automatically translate it to the new one.
Define function:
public static function onAbuseFilter_deprecatedVariables( &$deprecatedVariables ) { ... }
Attach hook:
$wgHooks['AbuseFilter-deprecatedVariables'][] = 'MyExtensionHooks::onAbuseFilter_deprecatedVariables';
Called from:File(s): AbuseFilter / includes/AbuseFilter.php
Function(s): getDeprecatedVariables

For more information about attaching hooks, see Manual:Hooks.
For examples of other extensions using this hook, see Category:AbuseFilter-deprecatedVariables extensions.


  • &$deprecatedVariables: array of deprecated variables, syntax: [ 'old_name' => 'new_name' ]