Available from version ???
Override the native NewUserMessage message
Define function:
public static function onCreateNewUserMessage( $user, $editor, $editSummary, $substitute, $signature ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"CreateNewUserMessage": "MyExtensionHooks::onCreateNewUserMessage"

For MediaWiki ≤1.25:

$wgHooks['CreateNewUserMessage'][] = 'MyExtensionHooks::onCreateNewUserMessage';
Called from:File(s): NewUserMessage.class.php

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


  • $user: the user object who's talk page is being created
  • $editor: the user that we'll use to leave the message
  • $editSummary: the edit summary
  • $substitute: boolean, true if template substitution is to take place
  • $signature: signature