< Manual:Hooks 
 
        
      | TempUserCreatedRedirect | |
|---|---|
| Available from version 1.39.0 (Gerrit change 773383) This hook is called after an action causes a temporary user to be created. The handler may modify the redirect URL. | |
| Define function: | public static function onTempUserCreatedRedirect( Session $session, UserIdentity $user, string $returnTo, string $returnToQuery, string $returnToAnchor, &$redirectUrl ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"TempUserCreatedRedirect": "MyExtensionHooks::onTempUserCreatedRedirect"
	}
}
 | 
| Called from: | File(s): EditPage.php Function(s): doPostEditRedirect | 
| Interface: | TempUserCreatedRedirectHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:TempUserCreatedRedirect extensions.
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.