os.userCount()

Get the number of registered users.

Syntax

os.userCount() int os.userCount(registrationStatus int) int

Parameters

registrationStatus int

The registration status to filter for.

  • 1: active (default)
  • 2: pending
  • 3: invited
  • 4: banned

When registrationStatus is not provided, it defaults to listing users with active registrations.

Description

Get the number of registered users filtered by their registration status.

Examples

Get the number of all registered users with active registrations, including the website owner. (In this sandbox, there are no registered users other than the website owner.)

Get the number of all registered users with active registration status.

Get the number of all registered users with pending registration status.

Get the number of all registered users with invited registration status.

Get the number of all registered users with banned registration status.