How to write a WordPress function/hook that run automatically after a user logged in. after some search, i found
- do_action('wp_login', 'custom_function_name');
but where/ in which file I have to write the custom function and above code?
Please, help.
Regards