• Resolved bleffoman

    (@bleffoman)


    When I try to “view as” a normal subscriber users I can find only a few of my registered users. Like 100 on 4000 users. Very strange, looks like there’s a limit on the users’ query.
    I already deactivate\activated and uninstalled\installed the plugin. My version is the last one, 1.8.4.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @bleffoman

    That is correct, see FAQ #1:

    If the amount of users is more than 100 the plugin will switch to AJAX search and won’t load users in advance for performance.
    This limit can be changed through the filter: view_admin_as_user_query_limit

    Hope this answers your question!

    Cheers, Jory

    Thread Starter bleffoman

    (@bleffoman)

    Ok gotcha.
    So Shoud I put in the wp-config define(‘view_admin_as_user_query_limit’,10000);
    or to use the action filter view_admin_as_user_query_limit ?

    please give me an example.

    thanks,
    Fabio

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @bleffoman

    With AJAX you can still find any user on your site, you just need to specify your search.
    You can search by ID, Username, Email, Website and Display name.
    The more letters you type the better the search will be.

    Personally I dis-advice into raising the limit due to possible performance issues now or in the future.
    The WordPress admin users page (and other admin pages) have these limits in there as well, for a good reason!

    If you still want to modify the max amount of users use this filter see the WIKI and WordPress documentation about filters:
    https://github.com/JoryHogeveen/view-admin-as/wiki/Filters#view_admin_as_user_query_limit
    https://developer.ww.wp.xz.cn/plugins/hooks/filters/

    NOTE: This filter won’t work in your theme’s functions.php since that is loaded too late. You’ll need to make a MU-plugin.
    https://ww.wp.xz.cn/support/article/must-use-plugins/

    Cheers, Jory

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @bleffoman

    I didn’t hear from you again so I assume you sorted it out.
    If not, feel free to reopen this ticket and I’m happy to help!

    Cheers, Jory

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Only a few users viewed’ is closed to new replies.