Manual:Hooks/LocalisationChecksBlacklist

LocalisationChecksBlacklist
Available from version 1.23.0 (Gerrit change 94603)
When fetching the blacklist of localisation checks.
Define function:
public static function onLocalisationChecksBlacklist( &$blacklist ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"LocalisationChecksBlacklist": "MediaWiki\\Extension\\MyExtension\\Hooks::onLocalisationChecksBlacklist"
	}
}
Called from: File(s):
Function(s): getCheckBlacklist
Interface: LocalisationChecksBlacklistHook.php

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


Details

edit
  • &$blacklist: array of checks to blacklist. See the bottom of checkLanguage.inc for the format of this variable.