我正在开发的网站有一个 Yii 部分和一个 Wordpress 部分。我目前不确定如何检查用户是否在 Wordpress 部分中使用 Yii 网站登录,或者是否可以这样做。
问问题
87 次
1 回答
0
All you have to do is include the wp-load.php
file in the index.php
of Yii and after that, you will be able to use all the wordpress functions, including is_user_logged_in()
.
and also check this link http://codex.wordpress.org/Function_Reference/
hope it will help you.Thank you.
于 2013-08-08T15:41:26.233 回答