PDA

View Full Version : how do I hook into the hookUserAfterSave call?


ziggyfish
03-06-2017, 10:33 PM
How do I create a function which will be called when the following is called (see line 2785 in core/vb/api/user.php )?

vB::getHooks()->invoke('hookUserAfterSave', array(
'adminoverride' => $adminoverride,
'userid' => $newuserid,
'newuser' => $newuser,
'emailVerificationRequired' => $verifyEmail,
'userIsModerated' => (!$adminoverride AND $newuser AND $vboptions['moderatenewmembers'])
));

noypiscripter
03-07-2017, 03:15 AM
There's a sample hook in the /do_not_upload directory of the vB5 package.