[wp-trac] [WordPress Trac] #37866: Introduce `$network_id` parameter in `get_user_count()`
WordPress Trac
noreply at wordpress.org
Mon Aug 29 15:22:19 UTC 2016
#37866: Introduce `$network_id` parameter in `get_user_count()`
--------------------------------+-----------------------------
Reporter: flixos90 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version:
Severity: normal | Keywords:
Focuses: multisite |
--------------------------------+-----------------------------
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.
Related: #37865
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37866>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list