Extension:WikiSEO/Hooks/WikiSEOPreAddMetadata

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
WikiSEOPreAddMetadata
Available from version 2.6.3 (Gerrit change 656107)
Allows for adjusting or replacing metadata that is set by the Generators.
Define function:
public static function onWikiSEOPreAddMetadata( array &$metadata ) { ... }
Attach hook:
$wgHooks['WikiSEOPreAddMetadata'][] = 'MyExtensionHooks::onWikiSEOPreAddMetadata';
Called from:File(s): WikiSEO / includes/WikiSEO.php
Function(s): addMetadataToPage

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

Parameters

&$metadata
An array of key-value pairs validated through Validator::validateParams