< Manual:Hooks
| UnblockUserComplete | |
|---|---|
| Available from version 1.29.0 (Gerrit change 329725) Occurs after the request to unblock an IP or user has been processed | |
| Define function: | public static function onUnblockUserComplete( Block $block, User $user ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"UnblockUserComplete": "MyExtensionHooks::onUnblockUserComplete"
}
}
|
| Called from: | File(s): specials/SpecialUnblock.php |
| Interface: | UnblockUserCompleteHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:UnblockUserComplete extensions.
Details
- $block: the Block object that was saved
- $user: the user who performed the unblock (not the one being unblocked)
See also
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.