{"id":4919373,"date":"2014-05-15T17:53:16","date_gmt":"2014-05-15T17:53:16","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/custom-php-code-social-login-1\/"},"modified":"2016-08-21T20:37:14","modified_gmt":"2016-08-21T20:37:14","slug":"custom-php-code-social-login-1","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/custom-php-code-social-login-1\/","title":{"rendered":"Custom PHP Code   Social Login"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I am creating a custom PHP code in my wordpress site with the purpose to generate a specific message for each user. So let&#8217;s say my DB is like this:<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n| User        |    Message  |<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n| ABC         | Hi, DEF!    |<br \/>\n| XYZ         | Hellooo!!   |<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nI want it so that when user ABC logs in with his fb connect, the specific message is displayed (Hi, DEF!).<\/p>\n<p>By using your plugin, can you advise me on how to do this cross check? To do this, I will need to get the id\/email + password of the logged in user and cross-check this with the information in the database to then extract the correct message. However, I do not know whether you store the id\/email + password or if you do, how you store them. Can you please help me on this?<\/p>\n<p>I know that in wp_users table you have the following fields:<br \/>\n&#8211; user_login<br \/>\n&#8211; user_pass<br \/>\n&#8211; user_nicename<br \/>\n&#8211; user_email<br \/>\n&#8211; user_url<br \/>\n&#8211; user_registered<br \/>\n&#8211; user_activation_key<br \/>\n&#8211; user_status<br \/>\n&#8211; display_name<br \/>\nMay I know what do you fill for each of these fields when someone logs in with the FB connect?<\/p>\n<p>Thanks! Your prompt reply would be greatly appreciated.<\/p>\n<p>Kind Regards,<br \/>\nPascal Gekko<\/p>\n<p>https:\/\/wordpress.org\/plugins\/oa-social-login\/<\/p>\n","protected":false},"template":"","class_list":["post-4919373","topic","type-topic","status-closed","hentry","topic-tag-custom","topic-tag-php","topic-tag-sql"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4919373","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\/4919373\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4919373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}