Viewing 10 replies - 1 through 10 (of 10 total)
  • This number is hidden for very large numbers of users for performance reasons. The limit is 10,000 by default and you can adjust it with this hook: https://developer.www.ads-software.com/reference/functions/wp_is_large_user_count/

    Thread Starter Anonymous User 17335794

    (@anonymized-17335794)

    Hello,

    Thanks for your reply.

    My site total user number of users is 12064.

    I am create one staging site and delete 2100 users from my site. Now total users is 9000 something only.

    But still “Administer” and “Customer” user count not showing.

    So my humble request you please help me.

    Which WordPress version do you use?

    Have you looked at the hook yet? I think you would be able to solve this immediately.

    Thread Starter Anonymous User 17335794

    (@anonymized-17335794)

    Hi,

    I am using wordpress lastest version 6.0.2

    Now I am just only change the value 10000 to 25000

    Now it will be showing the users count. But I don’t understand in “user.php” which line I am update the following code?

    apply_filters( ‘wp_is_large_user_count’, bool $is_large_user_count, int $count, int|null $network_id )

    I expect your reply as soon as possible.

    • This reply was modified 2 years, 1 month ago by Anonymous User 17335794.

    Apparently you don’t know how to use hooks yet. You never adapt the source code from the WordPress core but use the provided hooks to adapt a function. Examples of this can often be found in the WordPress manual, in this case unfortunately not: https://developer.www.ads-software.com/reference/functions/wp_is_large_user_count/ – could be because it was added in version 6.0.

    Here is an example:
    https://wp-kama.com/hook/wp_is_large_user_count

    In your case this could be enough:

    add_filter( 'wp_is_large_user_count', function() { return 20000; }, 10, 0 );

    You would have to add this code to your custom plugin, to your child theme’s functions.php or via code snippet plugin.

    If you need further assistance with this, you can try to find help from your hosting support or here: https://jobs.wordpress.net

    Thread Starter Anonymous User 17335794

    (@anonymized-17335794)

    Hi,

    Thanks for your reply,

    If I set count for 50000 any problem?

    add_filter( ‘wp_is_large_user_count’, function() { return 50000; }, 10, 0 );

    • This reply was modified 2 years, 1 month ago by Anonymous User 17335794.
    • This reply was modified 2 years, 1 month ago by Anonymous User 17335794.

    This can lead to a loading time problem depending on the performance of your hosting. Just try it out.

    Thread Starter Anonymous User 17335794

    (@anonymized-17335794)

    Hi,

    I am using VPS hosting.

    Thread Starter Anonymous User 17335794

    (@anonymized-17335794)

    Hello,

    When I am using this code to snippets plugin it will not working.

    add_filter( ‘wp_is_large_user_count’, function() { return 20000; }, 10, 0 );

    Otherwise it’s working. Please confirm any problem not using this code?

    Thread Starter Anonymous User 17335794

    (@anonymized-17335794)

    Hello,

    I am waiting for your reply.

    Please reply.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Users Count Not Showing’ is closed to new replies.