• Resolved colinsp

    (@colinsp)


    Is there any way to restrict the members directory to approved members only. It currently displays unapproved ones too.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support yuriinalivaiko

    (@yuriinalivaiko)

    The members directory displays unapproved members for the site administrator. It does not display unapproved members for other members.
    You can use a hook um_member_directory_before_query to hide unapproved members for everybody, but this may be uncomfortable for administrators who manage members.

    Example: https://gist.github.com/yuriinalivaiko/9538c3321eb678851b3ebe4d22c4eb9b

    Thread Starter colinsp

    (@colinsp)

    Thanks very much for your prompt reply. I will try your suggested code.

    Plugin Support yuriinalivaiko

    (@yuriinalivaiko)

    Hi @colinsp

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. ??

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Member directory restict to approved only’ is closed to new replies.