WP_Network::get_main_site_id

Private AccessPrivate Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

SummerySummery

Returns the main site ID for the network.

Syntax

WP_Network::get_main_site_id()

DescriptionDescription

Internal method used by the magic getter for the ‘blog_id’ and ‘site_id’ properties.

ReturnReturn

(int) The ID of the main site.

SourceSource

File: wp-includes/class-wp-network.php


			

ChangelogChangelog

Changelog
Version Description
4.9.0 Introduced.
Scroll to Top