Function: wp_maybe_update_network_user_counts

wp_maybe_update_network_user_counts( integer | null $network_id )

Update the network-wide users count.

If enabled through the \'enable_live_network_counts' filter, update the users count on a network when a user is created or its status is updated.


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.