Manual:Hooks/TempUserCreatedRedirect
From Linux Web Expert
TempUserCreatedRedirect | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar (Gerrit change 773383)</tvar></translate> This hook is called after an action causes a temporary user to be created. The handler may modify the redirect URL. | |
<translate> Define function:</translate> | public static function onTempUserCreatedRedirect(
MediaWiki\Session\Session $session,
MediaWiki\User\UserIdentity $user,
string $returnTo,
string $returnToQuery,
string $returnToAnchor,
string &$redirectUrl
) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"TempUserCreatedRedirect": "MediaWiki\\Extension\\MyExtension\\Hooks::onTempUserCreatedRedirect"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> EditPage.php <translate> Function(s):</translate> doPostEditRedirect |
<translate> Interface:</translate> | TempUserCreatedRedirectHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:TempUserCreatedRedirect extensions</tvar>.</translate>