{"id":9267577,"date":"2017-06-27T21:48:09","date_gmt":"2017-06-27T21:48:09","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/execute-jquery-code-after-successful-login-2\/"},"modified":"2017-06-27T21:48:09","modified_gmt":"2017-06-27T21:48:09","slug":"execute-jquery-code-after-successful-login-2","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/execute-jquery-code-after-successful-login-2\/","title":{"rendered":"Execute jQuery code after successful login"},"content":{"rendered":"<p>Hello I would like to execute jQuery code after successful login.<br \/>\nIs there something I can make use of? For example like so?<br \/>\njQuery(document).on(&#8216;lwa_login&#8217;, function(event, data, form){<br \/>\n\t\tif(data.result === true){<br \/>\n\/\/do something<br \/>\n}&#8230;<\/p>\n","protected":false},"template":"","class_list":["post-9267577","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9267577","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9267577\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=9267577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}