Available from version 1.16.0
Called at the end of XmlDumpWriter::openPage, to allow extra metadata to be added.
Define function:
public static function onXmlDumpWriterOpenPage( $obj, &$out, $row, $title ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"XmlDumpWriterOpenPage": "MyExtensionHooks::onXmlDumpWriterOpenPage"

For MediaWiki ≤1.25:

$wgHooks['XmlDumpWriterOpenPage'][] = 'MyExtensionHooks::onXmlDumpWriterOpenPage';
Called from:File(s): export/XmlDumpWriter.php

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


  • $obj: The XmlDumpWriter object.
  • &$out: The output string.
  • $row: The database row for the page.
  • $title: The title of the page.