< Manual:Hooks
| CategoryAfterPageRemoved | |
|---|---|
| Available from version 1.21.0 (Gerrit change 52295) Called after a page is removed from a category | |
| Define function: | public static function onCategoryAfterPageRemoved( $category, $wikiPage, $id ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"CategoryAfterPageRemoved": "MyExtensionHooks::onCategoryAfterPageRemoved"
}
}
|
| Called from: | File(s): page/WikiPage.php |
| Interface: | CategoryAfterPageRemovedHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:CategoryAfterPageRemoved extensions.
Details
- $category: Category that page was removed from
- $wikiPage: WikiPage that was removed
- $id: Page ID (this should be the original deleted page ID, since Gerrit change 294873)
See also
- Hooks/CategoryAfterPageAdded
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.