Page MenuHomeWickedGov Phorge

UserIsBotHook.php
No OneTemporary

Size
597 B
Referenced Files
None
Subscribers
None

UserIsBotHook.php

<?php
namespace MediaWiki\User\Hook;
use MediaWiki\User\User;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "UserIsBot" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface UserIsBotHook {
/**
* Use this hook to establish whether a user is a bot account.
*
* @since 1.35
*
* @param User $user
* @param bool &$isBot Whether this is user a bot or not (boolean)
* @return bool|void True or no return value to continue or false to abort
*/
public function onUserIsBot( $user, &$isBot );
}

File Metadata

Mime Type
text/x-php
Expires
Aug 17 2026, 19:10 (10 w, 18 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e6/1b/9dfa3bd36c6a395559246f80af2e
Default Alt Text
UserIsBotHook.php (597 B)

Event Timeline