Function: get_user_count

get_user_count( integer | null $network_id )

The number of active users in your installation.

The count is cached and updated twice daily. This is not a live count.


Name Type(s) Default Value Description
$network_id integer | null null

ID of the network. Default is the current network.



Number of active users on the network.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.