如何从 Wordpress 外部登录 Wordpress (mu) 用户? [英] How can I sign in a Wordpress (mu) user from outside of Wordpress?

查看:47
本文介绍了如何从 Wordpress 外部登录 Wordpress (mu) 用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一家公司工作,该公司使用 Wordpress MU 来补充会员网站上的其他功能.我们有一个用户注册过程,可以在注册时创建适当的 Wordpress MU 用户和博客,但我很难弄清楚如何从 Wordpress 本身之外将某人登录到 WP 博客.这些方法的文档似乎不存在或对我来说太迟钝了.

I'm working for a company that is using Wordpress MU to supplement other functions on a member site. We have a user signup process that creates the appropriate Wordpress MU users and blogs on signup, but I'm having real trouble figuring out how to log someone in to a WP blog from outside of Wordpress itself. The documentation these methods seem to be non-existent or just too obtuse for me.

在摘要中我知道怎么做:获取用户信息,设置与 Wordpress 自己设置的 cookie 相同的 cookie.完毕.然而,事情并非如此简单.

In the abstract I know how to do it: Take user info, set the same cookie that Wordpress would set itself. Done. It is, however, not this simple.

以前有人成功过吗?

推荐答案

嘿,一旦你使用了正确的工具,这并不是一件难事 ;)尝试 XML-RPC

Hey, it's not so tough task, once you are using correct instruments ;) Try XML-RPC

这篇关于如何从 Wordpress 外部登录 Wordpress (mu) 用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆