< Manual:Hooks 
 
      | GetAutoPromoteGroups | |
|---|---|
| Available from version 1.13.0 When determining which autopromote groups a user is entitled to be in. | |
| Define function: | public static function onGetAutoPromoteGroups( &$user, &$promote ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"GetAutoPromoteGroups": "MyExtensionHooks::onGetAutoPromoteGroups"
	}
}
 | 
| Called from: | File(s): Autopromote.php | 
| Interface: | GetAutoPromoteGroupsHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:GetAutoPromoteGroups extensions.
Details
- &$user: user to promote.
- &$promote: groups that will be added.
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.