Jump to content

Manual:Hooks/GetBlockedStatus

From mediawiki.org
GetBlockedStatus
Available from version 1.6.0
Removed in version 1.35.0 (Gerrit change 577328)
Fired after the user's getBlockStatus is set.
Define function:
public static function onGetBlockedStatus( $user ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"GetBlockedStatus": "MediaWiki\\Extension\\MyExtension\\Hooks::onGetBlockedStatus"
	}
}
Called from: File(s): user/User.php
Function(s): User::getBlockedStatus()
Interface: GetBlockedStatusHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:GetBlockedStatus extensions.

Details

[edit]
  • $user - The user whose block status is being checked.