I am using a function on wordpress that accurately counts registered users. How could I edit this function code to add a number to the counter? For example, so it outputs registered users + 100.

This is the code I am currently using:

        $result = count_users();
        echo 'There are <b>', $result['total_users'], '</b> total

Thank you

1 Answer 1


Er, echo $result['total_users'] + 100; ?

  • Thanks that did the trick. I knew it had to be something simple. I kept putting the 100 in the bracket. Noob mistake.
    – user91325
    Commented Aug 5, 2016 at 21:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.