1461functionget_user_count($network_id=null){1462if(!is_multisite()&&null!==$network_id){1463_doing_it_wrong(1464__FUNCTION__,1465sprintf(1466/* translators: %s: $network_id */1467__('Unable to pass %s if not using multisite.'),1468'<code>$network_id</code>'1469),1470'6.0.0'1471);1472}14731474return(int)get_network_option($network_id,'user_count',-1);1475}
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 7.0.4 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.