get_main_network_id WordPress Filter Hook

The get_main_network_id WordPress hook is used to return the id of the main network. This can be useful for plugins and themes that need to know the id of the main network.

apply_filters( 'get_main_network_id', int $main_network_id ) #

Filters the main network ID.


Parameters

$main_network_id

(int)The ID of the main network.


Top ↑

Source

File: wp-includes/functions.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.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