The action hook wp_login
runs when the user logs in – it can run a simple function.
1 2 3 4 | function do_anything() { //do stuff } add_action('wp_login', 'do_anything'); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.