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( 
	MediaWiki\Session\Session $session,
	MediaWiki\User\UserIdentity $user,
	string $returnTo,
	string $returnToQuery,
	string $returnToAnchor,
	string &$redirectUrl
 ) { ... }
Attach hook: In extension.json:
	"Hooks": {
		"TempUserCreatedRedirect": "MediaWiki\\Extension\\MyExtension\\Hooks::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.