Manual:Hooks/ChangeTagsAfterUpdateTags
Appearance
(Redirected from Manual:Hooks/ChangeTagsUpdate)
ChangeTagsAfterUpdateTags | |
---|---|
Available from version 1.28.0 Can be used by extensions to take actions after change tags have been added or updated. | |
Define function: | public static function onChangeTagsAfterUpdateTags( $addedTags, $removedTags, $prevTags, $rc_id, $rev_id, $log_id, $params, $rc, $user ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"ChangeTagsAfterUpdateTags": "MediaWiki\\Extension\\MyExtension\\Hooks::onChangeTagsAfterUpdateTags"
}
}
|
Called from: | File(s): ChangeTags.php |
Interface: | ChangeTagsAfterUpdateTagsHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ChangeTagsAfterUpdateTags extensions.
Details
[edit]- $addedTags: tags effectively added in the update
- $removedTags: tags effectively removed in the update
- $prevTags: tags that were present prior to the update
- $rc_id: recentchanges table id
- $rev_id: revision table id
- $log_id: logging table id
- $params: tag params
- $rc: RecentChange being tagged when the tagging accompanies the action or null
- $user: User who performed the tagging when the tagging is subsequent to the action or null