1382functionget_user_count($network_id=null){1383if(!is_multisite()&&null!==$network_id){1384_doing_it_wrong(1385__FUNCTION__,1386sprintf(1387/* translators: %s: $network_id */1388__('Unable to pass %s if not using multisite.'),1389'<code>$network_id</code>'1390),1391'6.0.0'1392);1393}13941395return(int)get_network_option($network_id,'user_count',-1);1396}
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.7.7 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.