- When a user registers as a user > need to run an api code to capture the registration info ( email id ) , which hook would be used for this.
- When a user logins > need to run an api code to capture the login info ( email id ) , which hook would be used for this.
- When a user logouts > need to run an api code to capture the registration info ( email id ) , which hook would be used for this.
When a user registers as a user > need to run an api code to capture the registration info ( email id ) , which hook would be used for this.
Please use the update_profile hook (app/functions/fn.users.php)
When a user logins > need to run an api code to capture the login info ( email id ) , which hook would be used for this.
login_user_post (app/functions/fn.users.php)
When a user logouts > need to run an api code to capture the registration info ( email id ) , which hook would be used for this.
user_logout_after (app/functions/fn.users.php)
This is the php side, can we use tpl for calling/pushing the data to an api ? e.g.
window._fbq.push(['track', 'AddToCart']);
Is there a tpl hook to run javascript code after the user logins.
Is there a tpl hook to run javascript code after the user logins.
I am afraid no, since the user is redirected to the previously visited page after login. It will be required to add some flag to session or cookie to develop such a feature