• Resolved Eggy

    (@zearth)


    Hi, how can I disable using addfilter for listing all users when using ‘WP_User_Query’ , I notice that the administrator, editors, contributer remove on the user listing when it is currently login as Subscriber.

    I tried increasing the “System” capabilities upto level2 which I see the contributor but if I crease more to see the editor and administrator that will compromise the capability role in WP.

    So is there any filter or code which I can this able it so low level user can see all users on my dropdown list?

    regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Eggy

    (@zearth)

    for the answer, override this filters

    add_action('pre_get_users', array($this, 'filterUserQuery'), 999);
    add_filter('rest_user_query', array($this, 'prepareUserQueryArgs'));
    Plugin Author AAM Plugin

    (@vasyltech)

    @zearth. Simply disable Users Filter service on the AAM Settings page. That’ll do the magic

    We are having issues with two users getting changed from a vendor role to the subscriber role for the last two weeks and it seems to be about the time of the last update for AAM. I am wondering if anyone else has reported similar issues as I am having to chance there role back daily
    Thanks
    Rob Hanson
    Oregon Lottery
    [email protected]
    971-719-6534

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable Limit View on WP_User_Query for Subcriber?’ is closed to new replies.