如何将用户帐户信息从 Wordpress 获取到 JApplet
我(将)通过 插件。
我想获取使用 JApplet
的用户的 WordPress 电子邮件地址(或其他帐户信息,如 ID),并将其存储 - 以及她/他在游戏中得分的结果(< code>JApplet) - 在数据库中。
有没有办法从小程序内访问此信息,也许是通过 cookie 或类似的方式?
顺便说一句,是的,所有用户都会被告知该信息将被存储等。无论如何,只有已经登录的用户才能访问该小程序。
预先非常感谢!
I (will) have a JApplet
embedded in a Wordpress.org installation (either on a page or in a post) via a plugin.
I would like to get the Wordpress email address (or other account info like ID) of the user that uses the JApplet
, and store it - together with a result s/he's scored in a game (the JApplet
) - in a database.
Is there a way to access this information from within the applet, perhaps by way of cookies or similar?
Btw, yes, all users are informed that this information will be stored, etc. Only users that are already logged in can access the applet anyway.
Thanks a lot in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议通过 PHP 替换的参数将该信息传递到小程序中,PHP 通过 Wordpress API 提供正确的 Wordpress 值。
I would recommend passing that information into the applet via parameters substituted by PHP that provides the proper Wordpress values through the Wordpress API.