WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about enable_live_network_counts

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/ms-functions.php apply_filters 2446 /**
* Filters whether to update network site or user counts when a new site is created.
*
* @since 3.7.0
*
* @see wp_is_large_network()
*
* @param bool $small_network Whether the network is considered small.
* @param string $context Context. Either 'users' or 'sites'.
*/
wp-includes/ms-functions.php apply_filters 2468 /**
* Updates the network-wide users count.
*
* If enabled through the {@see 'enable_live_network_counts'} filter, update the users count
* on a network when a user is created or its status is updated.
*
* @since 3.7.0
* @since 4.8.0 The `$network_id` parameter has been added.
*
* @param int|null $network_id ID of the network. Default is the current network.
*/
wp-includes/user.php apply_filters 1375 /**
* Updates the total count of users on the site if live user counting is enabled.
*
* @since 6.0.0
*
* @param int|null $network_id ID of the network. Defaults to the current network.
* @return bool Whether the update was successful.
*/

Hook Parameters

Parameter Type Name Description
bool $small_network Whether the network is considered small.
string $context Context. Either 'users' or 'sites'.
bool $small_network Whether the network is considered small.
string $context Context. Either 'users' or 'sites'.