Manual:Hooks/XMPGetInfo

Category:MediaWiki hooks#XMPGetInfo Category:Hooks added in MediaWiki 1.18.0#XMPGetInfo
XMPGetInfo
Available from version 1.18.0 (r86169, CodeReview archive)
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.phpCategory:MediaWiki hooks included in XMPInfo.php#XMPGetInfo
Interface: XMPGetInfoHook.php

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

Details

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.
Category:Hooks added in MediaWiki 1.18.0 Category:MediaWiki hooks Category:MediaWiki hooks included in XMPInfo.php