Support » Plugin: Membership Plugin - ARMember » 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)
  • edit: filter only work on wordpress login but not on armember login form.

    Plugin Author reputeinfosystems

    (@reputeinfosystems)

    Hello,

    I apologise for the delay in reply.

    I have checked “arm_check_member_status_before_login” filter at our local server and it is working fine so I could not found the issue. Please double check that you have defined filter properly and used that filter properly.

    Please check accordingly and let me know how it goes.

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.