Manual:Hooks/ArticleDeleteAfterSuccess

Category:MediaWiki hooks#ArticleDeleteAfterSuccess Category:Hooks added in MediaWiki 1.25.0#ArticleDeleteAfterSuccess
ArticleDeleteAfterSuccess
Available from version 1.25.0 (Gerrit change 170530)
Output after an article has been deleted
Define function:
public static function onArticleDeleteAfterSuccess( Title $title, OutputPage $output ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ArticleDeleteAfterSuccess": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleDeleteAfterSuccess"
	}
}
Called from: File(s): page/Article.phpCategory:MediaWiki hooks included in Article.php#ArticleDeleteAfterSuccess
Function(s): doDelete
Interface: ArticleDeleteAfterSuccessHook.php

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

Details

  • $title: Title object of the article that has been deleted.
  • $outputPage: OutputPage object that can be used to append the output.
Category:Hooks added in MediaWiki 1.25.0 Category:MediaWiki hooks Category:MediaWiki hooks included in Article.php