Page MenuHomeWickedGov Phorge

UnblockUserHook.php
No OneTemporary

Size
801 B
Referenced Files
None
Subscribers
None

UnblockUserHook.php

<?php
namespace MediaWiki\Hook;
use MediaWiki\Block\DatabaseBlock;
use MediaWiki\User\User;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "UnblockUser" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface UnblockUserHook {
/**
* This hook is called before an IP address or user is unblocked.
*
* @since 1.35
*
* @param DatabaseBlock $block The Block object about to be saved
* @param User $user The user performing the unblock (not the one being unblocked)
* @param array &$reason If the hook is aborted, the error message to be returned in an array
* @return bool|void True or no return value to continue or false to abort
*/
public function onUnblockUser( $block, $user, &$reason );
}

File Metadata

Mime Type
text/x-php
Expires
Aug 18 2026, 07:29 (7 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
99/72/d34816b1b2b304e224740997d602
Default Alt Text
UnblockUserHook.php (801 B)

Event Timeline