Manual:Hooks/ArticleEditUpdatesDeleteFromRecentchanges

From MediaWiki.org
Jump to navigation Jump to search
ArticleEditUpdatesDeleteFromRecentchanges
Available from version 1.6.0
Occurs before saving to the database.
Define function:
public static function onArticleEditUpdatesDeleteFromRecentchanges( &$wikiPage ) { ... }
Attach hook:

In extension.json:

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

For MediaWiki ≤1.25:

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

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

Details[edit]

  • $wikiPage: the Wikipage (object) being updated or deleted

Notes[edit]

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

See also[edit]