Warning: This function has been deprecated. Use is_main_site() instead.

is_main_blog() WordPress Function

The is_main_blog() function is used to check if the current blog is the main blog. This function is useful for multi-site installations. If the current blog is the main blog, this function will return true. Otherwise, it will return false.

is_main_blog() #

Deprecated functionality to determin if the current site is the main site.


Description

Top ↑

See also


Top ↑

Source

File: wp-includes/ms-deprecated.php

function is_main_blog() {
	_deprecated_function( __FUNCTION__, '3.0.0', 'is_main_site()' );
	return is_main_site();
}


Top ↑

Changelog

Changelog
VersionDescription
3.0.0Use is_main_site()
MU (3.0.0)Introduced.

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.