2022-02-08, 11:43 PM
(This post was last modified: 2022-02-09, 11:09 AM by SvePu. Edited 1 time in total.)
Thank you both for replying
I've tried to manage it like this:
The hook has to be defined in AdminCP or not?
Oh lord..I was a little bit tired yesterday.
Finally I figured it out...the needed hook was on wrong position.
Thank you all for suggestions!
I've tried to manage it like this:
$plugins->add_hook('datahandler_user_delete_start', 'myfunction_user');
function myfunction_user($data)
{
foreach ($data->delete_uids as $key => $uid)
{
/** */
}
}
The hook has to be defined in AdminCP or not?
Oh lord..I was a little bit tired yesterday.
Finally I figured it out...the needed hook was on wrong position.
Thank you all for suggestions!