wp_is_large_network WordPress Filter Hook

The wp_is_large_network hook is a conditional hook that is used to determine whether a WordPress network is considered to be large. A network is considered to be large if it has more than 10,000 users or more than 10,000 sites. This hook can be used to perform different actions depending on whether a network is considered to be large or not.

apply_filters( 'wp_is_large_network', bool $is_large_network, string $component, int $count, int $network_id ) #

Filters whether the network is considered large.


Parameters

$is_large_network

(bool)Whether the network has more than 10000 users or sites.

$component

(string)The component to count. Accepts 'users', or 'sites'.

$count

(int)The count of items for the component.

$network_id

(int)The ID of the network being checked.


Top ↑

Source

File: wp-includes/ms-functions.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.8.0The $network_id parameter has been added.
3.3.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