我驗證用戶同意首先註冊成爲用戶的功能無法登錄我註冊
add_filter('wp_authenticate_user', function($user) {
if (get_user_meta($user->ID, 'user_flag', true) == 'active')
{
return $user;
}
return new WP_Error('Account Not Active...');
}, 10, 2, 0);
默認用戶,我在郵箱獲得密碼註冊用戶和它的工作很好,如果WordPress用戶我沒有使用這種身份驗證功能,但與此我無法登錄到word按新聞我數學的用戶的meta值,並批准,從管理
每次我嘗試登錄用戶給我的數據沒有收到並返回登錄。
你使用的是什麼版本的PHP? – vvanasten