1448functionget_user_count($network_id=null){1449if(!is_multisite()&&null!==$network_id){1450_doing_it_wrong(1451__FUNCTION__,1452sprintf(1453/* translators: %s: $network_id */1454__('Unable to pass %s if not using multisite.'),1455'<code>$network_id</code>'1456),1457'6.0.0'1458);1459}14601461return(int)get_network_option($network_id,'user_count',-1);1462}
History
Introduced in 6.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
6.0.0
Moved to wp-includes/user.php.from the docblock
4.8.0
The $network_id parameter has been added.from the docblock
MU (3.0.0)
MU (3.0.0)from the docblock
About this page
Parsed data
Generated from the wordpress-develop 6.8.8 tag, from src/wp-includes/user.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.