Open main menu

Manual:Hooks/ArticleEditUpdatesDeleteFromRecentchanges

< Manual:Hooks
ArticleEditUpdatesDeleteFromRecentchanges
Available from version 1.6.0
Occurs before saving to the database.
Define function:
public static function onArticleEditUpdatesDeleteFromRecentchanges( Wikipage &$wikiPage ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"ArticleEditUpdatesDeleteFromRecentchanges": "MyExtensionHooks::onArticleEditUpdatesDeleteFromRecentchanges"
	}
}

For MediaWiki ≤1.25:

$wgHooks['ArticleEditUpdatesDeleteFromRecentchanges'][] = 'MyExtensionHooks::onArticleEditUpdatesDeleteFromRecentchanges';
Called from:File(s): Storage/DerivedPageDataUpdater.php

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

If returning false, old entries are not deleted from the recent changes list.

DetailsEdit

  • &$wikiPage: the WikiPage object being updated or deleted

See alsoEdit