< Manual:Hooks
![]() | This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility. This feature was deprecated in version 1.35.0. Please see RecentChange_save for an alternative way to use this feature. |
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"
}
}
|
Called from: | File(s): Storage/DerivedPageDataUpdater.php |
Interface: | ArticleEditUpdatesDeleteFromRecentchangesHook.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.
Details
&$wikiPage
: the WikiPage object being updated or deleted
See also
- Manual:$wgRCMaxAge
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.