enable_live_network_counts WordPress Filter Hook

The enable_live_network_counts hook allows you to display the number of active users on your site in real-time. This can be useful for showing how popular your site is, or for monitoring the activity of your users.

apply_filters( 'enable_live_network_counts', bool $small_network, string $context ) #

Filters whether to update network site or user counts when a new site is created.


Description

Top ↑

See also


Top ↑

Parameters

$small_network

(bool)Whether the network is considered small.

$context

(string)Context. Either 'users' or 'sites'.


Top ↑

Source

File: wp-includes/ms-functions.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More