我使用wordpress external-database-authentication插件进行外部数据库连接用户身份验证。如果用户在访问我的wordpress博客后登录我的外部网站,那么他就会在wordpress博客中登陆。我使用下面的函数这个函数在我的localhost中运行良好,但在服务器中它不工作。它有什么问题吗?
$check = 'auth';
include('../news/wp-config.php');
include(ABSPATH . WPINC . '/pluggable.php');
wp_setcookie($email, $user_pass, false, '', '', $check);