Function: wp_update_network_user_counts

wp_update_network_user_counts( integer | null $network_id )

Update the network-wide user count.

Parameters

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

ID of the network. Default is the current network.

WordPress Developer Newsletter

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