Available from version 1.5.7 (r13012, codereview)
Removed in version 1.37.0
called when retrieving "You have new messages!" message(s)
Define function:
public static function onUserRetrieveNewTalks( &$user, &$talks ) { ... }
Attach hook: In extension.json:
	"Hooks": {
		"UserRetrieveNewTalks": "MyExtensionHooks::onUserRetrieveNewTalks"
Called from: File(s): User.php
Interface: UserRetrieveNewTalksHook.php

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


  • &$user: user retrieving new talks messages
  • &$talks: reference to array of new talks page(s)