Manual:Hooks/XMPGetInfo

XMPGetInfo
Available from version 1.18.0 (r86169, codereview)
Called when obtaining the list of XMP tags to extract.
Define function:
public static function onXMPGetInfo( &$items ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"XMPGetInfo": "MediaWiki\\Extension\\MyExtension\\Hooks::onXMPGetInfo"
	}
}
Called from: File(s): XMPInfo.php
Interface: XMPGetInfoHook.php

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


Details edit

Can be used to add additional tags to extract.

  • &$items: Array containing information on which items to extract. See XMPInfo for details on the format.