Manual:Hooks/UnblockUserComplete

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": "MediaWiki\\Extension\\MyExtension\\Hooks::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

edit
  • $block: the Block object that was saved
  • $user: the user who performed the unblock (not the one being unblocked)

See also

edit