Plugin Author
Navdeep
(@neerajsharma2855)
You can call function after successful login in ajax code .
-
This reply was modified 7 years, 10 months ago by
Navdeep.
Hello thank you.
How would I do it?
Do you mind providing a short code example.
Regards,
Nicholas
-
This reply was modified 7 years, 10 months ago by
nicholasag.
Plugin Author
Navdeep
(@neerajsharma2855)
Sorry nicholasag . what do you want say ?
Do you mind providing a code example of how I would execute custom jQuery upon login using your plugin, because the one I tried above is not working for me.
“jQuery(document).on(‘lwa_login’, function(event, data, form){
if(data.result === true){
//do something
}…”
Thanks,
Nicholas
Plugin Author
Navdeep
(@neerajsharma2855)
Hello Nicholas
please check . http://api.jquery.com/on/
Thank you. What is your plugins login event called?
“jQuery(document).on(‘?’, function(event, data, form){
if(data.result === true){
//do something
}…”
-
This reply was modified 7 years, 10 months ago by
nicholasag.
Plugin Author
Navdeep
(@neerajsharma2855)
HI Nicholasag ,
Actually i have not created code something like this which will be called event
Plugin Author
Navdeep
(@neerajsharma2855)
Might be . because this plugin is very old and famous plugin and most installed plugin with ajax . you need to check code in plugin .
yes it works with that plugin.