i also fix of the notices in debug mode but it didn’t help my problem in any way , the function is still exectued first
Hi Ismael ,
yes , values of the $fields[‘ID’] and $arr[‘user_id’] are the same thats what i ve checked in the first place,
later I found out that function of my_generate_key() is executed after my_add_key_to_email() despite the hooks that are declared , so the key is generated after the email is sent and it is not available in user metadata