< Manual:Hooks
PageViewUpdates | |
---|---|
Available from version 1.25.0 Called after a page view is seen by MediaWiki. Note this does not capture views made via external caches such as Squid. | |
Define function: | public static function onPageViewUpdates( WikiPage $wikipage, User $user ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"PageViewUpdates": "MyExtensionHooks::onPageViewUpdates"
}
}
|
Called from: | File(s): page/WikiPage.php |
Interface: | PageViewUpdatesHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:PageViewUpdates extensions.
Details
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.