check member status before login
-
Hi,
i created a test user (id =4).
i tried to run this filter but nothing happen (on wordpress login and armember login page).the user always login.
add_filter( ‘arm_check_member_status_before_login’, ‘your_function’, 10, 2);
function your_function($user_status = true, $user_id) {
//$user_status True OR error message.
//$user_id User ID.
if($user_id == 4) {
global $arm_errors;
$arm_errors->add(‘access_denied’, ‘You are not authorize to login.’);
$user_status = $arm_errors;
}
return $user_status;
}
any help please?
thank you
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘check member status before login’ is closed to new replies.