Manual:Hooks/BeforeWelcomeCreation

From MediaWiki.org
Jump to: navigation, search
BeforeWelcomeCreation
Available from version 1.18.0
Occurs before a newly created user sees a welcomecreation message

Define function:
public static function onBeforeWelcomeCreation( &$welcome_creation_msg, &$inject_html ) { ... }

Attach hook:
$wgHooks['BeforeWelcomeCreation'][] = 'MyExtensionHooks::onBeforeWelcomeCreation';
Called from: SpecialUserlogin.php

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


[edit] Details

  • $welcome_creation_msg: name of the MediaWiki message to display to the user, or NULL
  • $inject_html: From 1.13, any HTML to inject after the login success message for a newly created user
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox