I am writing a plugin that fetches some extended user info from a remote service and I need it to execute its function each time a user logs in.
Is there a hook that gets fired after login that I can add an action to?
The action hook wp_login runs when the user logs in - it can run a simple function.
documentation : https://codex.wordpress.org/Plugin_API/Action_Reference/wp_login
The real breadwinner here is
and to change the redirect URL after login, there is the filter
I would caution against using
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?