Introduce `$network_id` parameter in `get_user_count()`
|Reported by:||flixos90||Owned by:||flixos90|
|Component:||Networks and Sites||Keywords:||has-patch commit has-unit-tests|
The function get_user_count() currently only supports checking for user count of the current network. Since it is easily possible to retrieve that value for other networks as well using get_network_option() (since 4.4), I think we should support that functionality here as well by introducing an optional $network_id parameter that will default to the current network.
Change History (11)
5 weeks ago
- Keywords commit added; 2nd-opinion removed
- Milestone changed from Awaiting Review to 4.8