< Manual:Hooks
PageUndelete | |
---|---|
Available from version 1.37.0 Run before page undeletion | |
Define function: | public static function onPageUndelete( ProperPageIdentity $page, Authority $performer, string $reason, bool $unsuppress, array $timestamps, array $fileVersions, StatusValue $status ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"PageUndelete": "MyExtensionHooks::onPageUndelete"
}
}
|
Called from: | File(s): page/UndeletePage.php |
Interface: | PageUndeleteHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:PageUndelete extensions.
This hook is fired by UndeletePage before performing any undeletion, and allows callers to perform additional actions or abort the operation.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.