Manual:Hooks/ArticleEditUpdatesDeleteFromRecentchanges

From Linux Web Expert

ArticleEditUpdatesDeleteFromRecentchanges
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate>
Occurs before saving to the database.
<translate> Define function:</translate>
public static function onArticleEditUpdatesDeleteFromRecentchanges( Wikipage &$wikiPage ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"ArticleEditUpdatesDeleteFromRecentchanges": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleEditUpdatesDeleteFromRecentchanges"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> Storage/DerivedPageDataUpdater.php
<translate> Interface:</translate> ArticleEditUpdatesDeleteFromRecentchangesHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:ArticleEditUpdatesDeleteFromRecentchanges extensions</tvar>.</translate>


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

Details

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

See also